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


Performing analysis on: 4FGL_J1139.0+4033_daily_bin1000
RA = 174.764, Dec = 40.5617
tmin = 498528001, tmax = 498787201
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='987784', job_status='RUN', time_executed='2021-09-04 07:09:19.714232', time_epoch_executed='1630764559.71' WHERE source_name='4FGL J1139.0+4033' and cadence='daily' and bin_id='1000'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/987784

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/987784/ft1_4FGL_J1139.0+4033_daily_bin1000.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/987784/ft2_4FGL_J1139.0+4033_daily_bin1000.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/987784/ft1_4FGL_J1139.0+4033_daily_bin1000.fits outfile=/scratch/kocevski/987784/ft1_filteredMKT_4FGL_J1139.0+4033_daily_bin1000.fits ra=174.764 dec=40.5617 rad=12.0 tmin=498528001.0 tmax=498787201.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 4.92
user 4.63
sys 0.26

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/987784/ft1_filtered_4FGL_J1139.0+4033_daily_bin1000.fits evtable="EVENTS" scfile=/scratch/kocevski/987784/ft2_4FGL_J1139.0+4033_daily_bin1000.fits sctable="SC_DATA" expcube=/scratch/kocevski/987784/ltcube_498528001_498787201_4FGL_J1139.0+4033_daily_bin1000.fits outfile=/scratch/kocevski/987784/expmap_498528001_498787201_4FGL_J1139.0+4033_daily_bin1000.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/987784/ltcube_498528001_498787201_4FGL_J1139.0+4033_daily_bin1000.fits
.....................!
real 189.76
user 185.37
sys 4.02

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/987784/ft1_filtered_4FGL_J1139.0+4033_daily_bin1000.fits scfile=/scratch/kocevski/987784/ft2_4FGL_J1139.0+4033_daily_bin1000.fits outfile=/scratch/kocevski/987784/cmap_498528001_498787201_4FGL_J1139.0+4033_daily_bin1000.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.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.1175       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .83768       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    26.799       1.0000         .10000E-03   10000.    
     7 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .16661E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .16244E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.9332       1.0000         .10000E-03   10000.    
    13 'Prefactor '    30.737       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.6104       1.0000         .10000E-03   10000.    
    15 'Prefactor '    80.895       1.0000         .10000E-03   10000.    
    16 'norm      '    .73430       1.0000         .10000E-03   10000.    
    17 'norm      '    7.6233       1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.797       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.2804       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    36.217       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .88204       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .93261       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=   4765.656     FROM MIGRAD    STATUS=CONVERGED    601 CALLS     2914 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1002        91.355        .66491E-04   -.45794E-04
   2  Prefactor     .10000E-03    27.555        .10599E-04** at limit **
   3  norm          .83769        .28672       -.37828E-07   -.91420E-03
   4  Prefactor     .10000E-03    5.9484       -.80086E-07** at limit **
   5  Prefactor     .10000E-03    8.0187       -.37786E-07** at limit **
   6  Prefactor     26.574        60.952       -.26729E-04   -.13727E-05
   7  norm          .10000E-03    23.847        .23693E-04** at limit **
   8  norm          .10000E-03    16.414        .12341E-04** at limit **
   9  Prefactor     .10000E-03    1.8136       -.11928E-07** at limit **
  10  Prefactor     .10000E-03    28.823       -.20605E-04** at limit **
  11  Prefactor     .10000E-03    20.608       -.22562E-04** at limit **
  12  norm          2.9313        2.1065        .43202E-07    .19673E-03
  13  Prefactor     30.736        17.748       -.20247E-05    .35675E-03
  14  Prefactor     1.6087        3.5259       -.29127E-06   -.40817E-03
  15  Prefactor     80.894        44.012       -.17680E-05    .14530E-04
  16  norm          .73408        .69629        .61871E-07    .17196E-03
  17  norm          7.6232        8.6261       -.21971E-06   -.19986E-03
  18  Prefactor     14.764        21.466        .57125E-05    .28957E-04
  19  Prefactor     4.2805        3.3697       -.14209E-06    .45097E-04
  20  Prefactor     .10000E-03    12.575        .14835E-05** at limit **
  21  Prefactor     .10000E-03    14.124       -.64450E-05** at limit **
  22  Prefactor     36.227        35.872       -.20627E-04    .44318E-05
  23  Prefactor     .10000E-03    6.1820        .28912E-06** at limit **
  24  Normalizat    .88198        .17429        .25999E-05   -.17681E-03
  25  Prefactor     .93272        .20890       -.69822E-06   -.28880E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.10023
  Prefactor  = 0.0001
  norm       = 0.837686
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.5738
  norm       = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.9313
  Prefactor  = 30.7359
  Prefactor  = 1.60866
  Prefactor  = 80.8943
  norm       = 0.734078
  norm       = 7.62323
  Prefactor  = 14.7642
  Prefactor  = 4.28053
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.2275
  Prefactor  = 0.0001
  Normalizat = 0.88198
  Prefactor  = 0.932721
 **********
 **   18 **HESSE 
 **********

 FCN=   4765.656     FROM HESSE     STATUS=OK           427 CALLS     3341 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1002        90.537        .28345E-03   -1.5418    
   2  Prefactor     .10000E-03    27.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .83769        .28752        .20991E-04   -1.5525    
   4  Prefactor     .10000E-03    5.9658        .16442E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.0472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     26.574        61.001        .77386E-04   -1.4677    
   7  norm          .10000E-03    24.474        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    16.428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.9814        .17658E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    28.894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    20.660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.9313        2.0807        .80236E-04   -1.5366    
  13  Prefactor     30.736        17.696        .72270E-04   -1.4599    
  14  Prefactor     1.6087        3.4694        .18412E-03   -1.5454    
  15  Prefactor     80.894        43.683        .44655E-04   -1.3907    
  16  norm          .73408        .68229        .52718E-04   -1.5537    
  17  norm          7.6232        8.6276        .72622E-03   -1.5156    
  18  Prefactor     14.764        21.468        .10412E-03   -1.4939    
  19  Prefactor     4.2805        3.3645        .10696E-03   -1.5294    
  20  Prefactor     .10000E-03    12.577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    14.183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     36.227        35.920        .66594E-04   -1.4503    
  23  Prefactor     .10000E-03    6.2246        .16759E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .88198        .20105        .22748E-03   -.97096    
  25  Prefactor     .93272        .24080        .27088E-03   -.95007    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.60656e-10
Minuit parameter uncertainties:
  1  27.6229
  2  2.74656e-05
  3  0.287518
  4  2.16423e-05
  5  1.32616e-05
  6  61.1451
  7  0.0004632
  8  1.0431e-05
  9  8.48553e-06
  10  6.55822e-06
  11  0.000155853
  12  2.0808
  13  17.6995
  14  3.46986
  15  43.6999
  16  0.682301
  17  8.62899
  18  21.4793
  19  3.36468
  20  1.19562e-06
  21  1.7472e-06
  22  35.9415
  23  6.5599e-05
  24  0.201222
  25  0.241079
Done.

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

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  8.089e+01  4.370e+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:  9.327e-01  2.411e-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.820e-01  2.012e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.87
Ra Dec: 174.764 40.562
Photon Index (Fixed Index): 2.72 +/- 0.00
Photon Flux (Fixed Index): 8.58e-08 +/- 4.63e-08
Energy Flux (Fixed Index): 2.03e-05 +/- 1.10e-05

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) = 4765.35253972
delta logL = 0.302963894465

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4765.35128265
delta logL = 0.304220967591

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    113.26       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2980       1.0000          .0000       10.000    
     3 'Normalizat'    .90713       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90785       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=   4765.351     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      299 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     113.38        65.990        .18900E-03    .46918E-04
   2  Index         2.2990        .49590        .60567E-02   -.73599E-05
   3  Normalizat    .90706        .19834        .22474E-03    .15935E-04
   4  Prefactor     .90780        .24054        .27390E-03    .99201E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 113.377
  Index      = 2.29903
  Normalizat = 0.90706
  Prefactor  = 0.907797
 **********
 **   18 **HESSE 
 **********

 FCN=   4765.351     FROM HESSE     STATUS=OK            25 CALLS      324 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     113.38        65.026        .75600E-05   -1.3574    
   2  Index         2.2990        .48842        .24227E-03   -.57067    
   3  Normalizat    .90706        .19847        .89894E-05   -.96213    
   4  Prefactor     .90780        .24071        .10956E-04   -.95869    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49864e-11
Minuit parameter uncertainties:
  1  65.0665
  2  0.489528
  3  0.198627
  4  0.240994
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/987784': 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) = 4765.35127597
delta logL = 0.304227641863

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  1.134e+02  6.507e+01  1.000e-04  1.000e+04 ( 1.000e-13)
342        Index:  2.299e+00  4.895e-01  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.078e-01  2.410e-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.071e-01  1.986e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.51
Ra Dec: 174.764 40.562
Photon Index (Free Index): 2.30 +/- 0.49
Photon Flux (Free Index): 7.11e-08 +/- 4.39e-08
Energy Flux (Free Index): 2.70e-05 +/- 1.85e-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/987784/cmap_HighResolution_498528001_498787201_4FGL_J1139.0+4033_daily_bin1000.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.58e-08', energy_flux2='2.70e-05', photon_flux_error='4.63e-08', dlogl='3.04e-01', energy_flux='2.03e-05', photon_flux2='7.11e-08', job_status='DONE', time_completed='2021-09-04 07:19:56.728196', photon_index_error2='0.49', photon_index2='2.30', ts='5.87', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='1.85e-05', EG='0.88', time_epoch_completed='1630765196.73', return_code='0', job_id='987784', GAL2='0.91', EG2='0.91', return_code2='0', energy_flux_error='1.10e-05', photon_flux_error2='4.39e-08', ts2='6.51', photon_index='2.72' WHERE bin_id='1000' AND source_name='4FGL J1139.0+4033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 07:19:56 PDT 2021


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

Job <4FGL_J1139.0+4033_daily_bin1000> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 07:06:55 2021
Job was executed on host(s) <bullet0264>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 07:06:56 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:56 2021
Terminated at Sat Sep  4 07:19:57 2021
Results reported at Sat Sep  4 07:19:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1139.0+4033_daily_bin1000 174.764 40.5617 498528001 498787201 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 :                                   632.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             291.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   780 sec.
    Turnaround time :                            782 sec.

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

