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


Performing analysis on: 4FGL_J1139.0+4033_daily_bin76
RA = 174.764, Dec = 40.5617
tmin = 259027201, tmax = 259286401
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='980115', job_status='RUN', time_executed='2021-09-04 06:50:16.148571', time_epoch_executed='1630763416.15' WHERE source_name='4FGL J1139.0+4033' and cadence='daily' and bin_id='76'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/980115

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/980115/ft1_4FGL_J1139.0+4033_daily_bin76.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/980115/ft2_4FGL_J1139.0+4033_daily_bin76.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/980115/ft1_4FGL_J1139.0+4033_daily_bin76.fits outfile=/scratch/kocevski/980115/ft1_filteredMKT_4FGL_J1139.0+4033_daily_bin76.fits ra=174.764 dec=40.5617 rad=12.0 tmin=259027201.0 tmax=259286401.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.44
user 1.27
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/980115/ft1_filtered_4FGL_J1139.0+4033_daily_bin76.fits evtable="EVENTS" scfile=/scratch/kocevski/980115/ft2_4FGL_J1139.0+4033_daily_bin76.fits sctable="SC_DATA" expcube=/scratch/kocevski/980115/ltcube_259027201_259286401_4FGL_J1139.0+4033_daily_bin76.fits outfile=/scratch/kocevski/980115/expmap_259027201_259286401_4FGL_J1139.0+4033_daily_bin76.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/980115/ltcube_259027201_259286401_4FGL_J1139.0+4033_daily_bin76.fits
.....................!
real 192.56
user 187.82
sys 4.29

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/980115/ft1_filtered_4FGL_J1139.0+4033_daily_bin76.fits scfile=/scratch/kocevski/980115/ft2_4FGL_J1139.0+4033_daily_bin76.fits outfile=/scratch/kocevski/980115/cmap_259027201_259286401_4FGL_J1139.0+4033_daily_bin76.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.55
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/980115/ft1_filtered_4FGL_J1139.0+4033_daily_bin76.fits scfile=/scratch/kocevski/980115/ft2_4FGL_J1139.0+4033_daily_bin76.fits outfile=/scratch/kocevski/980115/cmap_HighResolution_259027201_259286401_4FGL_J1139.0+4033_daily_bin76.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .61778       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    23.230       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .14694E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10087E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.857       1.0000         .10000E-03   10000.    
    12 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.991       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12134E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.2925       1.0000         .10000E-03   10000.    
    17 'norm      '    4.5729       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.5671       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10229E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .13358E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.9319       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0233       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .91400       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=   5048.516     FROM MIGRAD    STATUS=CONVERGED    602 CALLS     2918 TOTAL
                     EDM=   .34E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.788        .33120E-07** at limit **
   2  Prefactor     .10000E-03    78.694        .98825E-06** at limit **
   3  norm          .61780        .25050       -.12676E-08   -.19529E-04
   4  Prefactor     .10000E-03    3.8145       -.23394E-07** at limit **
   5  Prefactor     23.231        14.452       -.15510E-06    .10879E-04
   6  Prefactor     .10001E-03    284.09        .99298E-05** at limit **
   7  norm          .10000E-03    10.578       -.35147E-06** at limit **
   8  norm          .10000E-03    19.443        .41278E-07** at limit **
   9  Prefactor     .10000E-03    .73487       -.10314E-06** at limit **
  10  Prefactor     .10000E-03    10.433       -.37936E-07** at limit **
  11  Prefactor     14.862        20.286       -.28472E-05    .29815E-04
  12  norm          .10000E-03    .78732       -.28353E-07** at limit **
  13  Prefactor     .10000E-03    33.607        .25782E-06** at limit **
  14  Prefactor     13.992        6.4721       -.30883E-06    .75399E-04
  15  Prefactor     .10000E-03    89.766        .37190E-06** at limit **
  16  norm          1.2922        1.0071       -.46731E-06   -.75701E-04
  17  norm          4.5731        8.6282       -.11006E-05    .24844E-04
  18  Prefactor     .10000E-03    12.874       -.10644E-06** at limit **
  19  Prefactor     2.5672        2.7518       -.22170E-06   -.54801E-05
  20  Prefactor     .10000E-03    22.989        .23537E-06** at limit **
  21  Prefactor     .10000E-03    22.130        .36265E-06** at limit **
  22  Prefactor     .10000E-03    156.44        .18320E-04** at limit **
  23  Prefactor     1.9318        5.4228       -.48265E-05    .42847E-04
  24  Normalizat    1.0233        .17548        .14089E-05    .68282E-04
  25  Prefactor     .91391        .20616        .15791E-05    .64958E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.617801
  Prefactor  = 0.0001
  Prefactor  = 23.2306
  Prefactor  = 0.000100007
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.862
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 13.9915
  Prefactor  = 0.0001
  norm       = 1.29222
  norm       = 4.57313
  Prefactor  = 0.0001
  Prefactor  = 2.5672
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.93181
  Normalizat = 1.02333
  Prefactor  = 0.913913
 **********
 **   18 **HESSE 
 **********

 FCN=   5048.516     FROM HESSE     STATUS=OK           425 CALLS     3343 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    78.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .61780        .25223        .21800E-04   -1.5551    
   4  Prefactor     .10000E-03    3.8176        .13552E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     23.231        14.455        .83108E-04   -1.4744    
   6  Prefactor     .10001E-03    285.81        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    11.008        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    19.445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    .74227        .59439E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     14.862        20.240        .10391E-03   -1.4937    
  12  norm          .10000E-03    .79348        .61531E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    34.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.992        6.4666        .10708E-03   -1.4960    
  15  Prefactor     .10000E-03    90.255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.2922        .99190        .59906E-04   -1.5481    
  17  norm          4.5731        8.6113        .18824E-03   -1.5280    
  18  Prefactor     .10000E-03    12.898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.5672        2.7416        .11764E-03   -1.5388    
  20  Prefactor     .10000E-03    23.010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    22.262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    151.86        .60899E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.9318        5.4050        .26907E-03   -1.5430    
  24  Normalizat    1.0233        .20185        .22244E-03   -.92253    
  25  Prefactor     .91391        .23705        .28002E-03   -.95657    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.05746e-11
Minuit parameter uncertainties:
  1  1.03419e-06
  2  0.000332374
  3  0.252234
  4  3.01314e-06
  5  14.4571
  6  0.00274057
  7  2.12747e-05
  8  3.20437e-05
  9  4.76259e-07
  10  3.16467e-06
  11  20.2498
  12  1.79444e-07
  13  0.000284929
  14  6.46689
  15  5.49711e-05
  16  0.991913
  17  8.61363
  18  5.77046e-07
  19  2.74171
  20  3.04192e-05
  21  3.13687e-05
  22  0.000237768
  23  5.40635
  24  0.202002
  25  0.23732
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
693    Prefactor:  9.139e-01  2.373e-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.023e+00  2.020e-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: 1.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.30e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/980115/likelihoodResults_259027201_259286401_4FGL_J1139.0+4033_daily_bin76.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) = 5048.5161413
delta logL = -5.26791518496e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5048.46609242
delta logL = 0.0499961967789

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1331       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9065       1.0000          .0000       10.000    
     3 'Normalizat'    1.0018       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92752       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=   5048.466     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      302 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1603        250.83        .57259E-02    .25054E-03
   2  Index         3.9056        3.4958        .30364        .35844E-04
   3  Normalizat    1.0017        .27013E-01    .46190E-01    .91022E-05
   4  Prefactor     .92764        .32512E-01    .45355E-01    .10553E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.1603
  Index      = 3.90563
  Normalizat = 1.00172
  Prefactor  = 0.927639
 **********
 **   18 **HESSE 
 **********

 FCN=   5048.466     FROM HESSE     STATUS=OK            33 CALLS      335 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1603        39.027        .22904E-03   -1.5352    
   2  Index         3.9056        3.2119        .92371E-02   -.22066    
   3  Normalizat    1.0017        .20763        .22452E-03   -.92973    
   4  Prefactor     .92764        .23989        .27812E-03   -.95182    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.50315e-11
Minuit parameter uncertainties:
  1  22.2291
  2  3.50601
  3  0.2078
  4  0.240169
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/980115': 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) = 5048.46608936
delta logL = 0.0499992588984

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  3.160e+00  2.223e+01  1.000e-04  1.000e+04 ( 1.000e-13)
342        Index:  3.906e+00  3.506e+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:  9.276e-01  2.402e-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.002e+00  2.078e-01  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/980115/cmap_HighResolution_259027201_259286401_4FGL_J1139.0+4033_daily_bin76.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.30e-03', job_status='DONE', photon_flux_upper_limit='1.05e-07', time_completed='2021-09-04 07:02:11.964856', job_id='980115', GAL2='0.93', fit_tolerance='1e-08', EG2='1.00', EG='1.02', time_epoch_completed='1630764131.96', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='5.00e-02', ts2='0.12', photon_index_error='0.00', photon_index='2.72' WHERE bin_id='76' AND source_name='4FGL J1139.0+4033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 07:02:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 980115: <4FGL_J1139.0+4033_daily_bin76> in cluster <slac> Done

Job <4FGL_J1139.0+4033_daily_bin76> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep  4 06:46:15 2021
Job was executed on host(s) <bullet0267>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 06:46:17 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:46:17 2021
Terminated at Sat Sep  4 07:02:12 2021
Results reported at Sat Sep  4 07:02:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1139.0+4033_daily_bin76 174.764 40.5617 259027201 259286401 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 :                                   715.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             290.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   955 sec.
    Turnaround time :                            957 sec.

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

