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


Performing analysis on: 4FGL_J1139.0+4033_daily_bin57
RA = 174.764, Dec = 40.5617
tmin = 254102401, tmax = 254361601
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='978775', job_status='RUN', time_executed='2021-09-04 06:45:10.414179', time_epoch_executed='1630763110.41' WHERE source_name='4FGL J1139.0+4033' and cadence='daily' and bin_id='57'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/978775

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/978775/ft1_4FGL_J1139.0+4033_daily_bin57.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/978775/ft2_4FGL_J1139.0+4033_daily_bin57.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/978775/ft1_4FGL_J1139.0+4033_daily_bin57.fits outfile=/scratch/kocevski/978775/ft1_filteredMKT_4FGL_J1139.0+4033_daily_bin57.fits ra=174.764 dec=40.5617 rad=12.0 tmin=254102401.0 tmax=254361601.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.12
user 1.83
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/978775/ft1_filtered_4FGL_J1139.0+4033_daily_bin57.fits" evtable="EVENTS" scfile=/scratch/kocevski/978775/ft2_4FGL_J1139.0+4033_daily_bin57.fits sctable="SC_DATA" outfile=/scratch/kocevski/978775/ltcube_254102401_254361601_4FGL_J1139.0+4033_daily_bin57.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/978775/ft2_4FGL_J1139.0+4033_daily_bin57.fits
.....................!
real 12.90
user 12.49
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/978775/ft1_filtered_4FGL_J1139.0+4033_daily_bin57.fits evtable="EVENTS" scfile=/scratch/kocevski/978775/ft2_4FGL_J1139.0+4033_daily_bin57.fits sctable="SC_DATA" expcube=/scratch/kocevski/978775/ltcube_254102401_254361601_4FGL_J1139.0+4033_daily_bin57.fits outfile=/scratch/kocevski/978775/expmap_254102401_254361601_4FGL_J1139.0+4033_daily_bin57.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/978775/ltcube_254102401_254361601_4FGL_J1139.0+4033_daily_bin57.fits
.....................!
real 191.48
user 186.29
sys 4.64

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/978775/ft1_filtered_4FGL_J1139.0+4033_daily_bin57.fits scfile=/scratch/kocevski/978775/ft2_4FGL_J1139.0+4033_daily_bin57.fits outfile=/scratch/kocevski/978775/cmap_254102401_254361601_4FGL_J1139.0+4033_daily_bin57.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=174.764 yref=40.5617 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/978775/ft1_filtered_4FGL_J1139.0+4033_daily_bin57.fits scfile=/scratch/kocevski/978775/ft2_4FGL_J1139.0+4033_daily_bin57.fits outfile=/scratch/kocevski/978775/cmap_HighResolution_254102401_254361601_4FGL_J1139.0+4033_daily_bin57.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.1685       1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.789       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.4016       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    31.747       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    23.727       1.0000         .10000E-03   10000.    
    12 'norm      '    .38431E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.382       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.7115       1.0000         .10000E-03   10000.    
    15 'Prefactor '    138.02       1.0000         .10000E-03   10000.    
    16 'norm      '    .12072E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    8.4656       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10497E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10392E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .89468       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1399       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=   4288.078     FROM MIGRAD    STATUS=CONVERGED    586 CALLS     2975 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    186.19       -.46526E-06** at limit **
   2  Prefactor     .10000E-03    53.021        .20577E-05** at limit **
   3  norm          1.1687        .38898       -.92641E-08    .41094E-03
   4  Prefactor     21.740        27.797        .44966E-06    .70201E-04
   5  Prefactor     2.3826        28.007       -.60431E-06    .10657E-04
   6  Prefactor     .10000E-03    80.887       -.49752E-05** at limit **
   7  norm          31.762        25.619       -.41376E-06    .58697E-04
   8  norm          .10000E-03    42.704       -.29289E-05** at limit **
   9  Prefactor     .10000E-03    .88782       -.69224E-07** at limit **
  10  Prefactor     .10000E-03    15.923       -.51441E-07** at limit **
  11  Prefactor     23.727        28.463       -.37607E-07    .21183E-04
  12  norm          .42358E-01    2.2082       -.15764E-05    .10498E-02
  13  Prefactor     10.375        18.854       -.39812E-06    .59564E-04
  14  Prefactor     4.7120        5.0685        .26945E-07    .86725E-04
  15  Prefactor     138.11        65.740        .15821E-05    .14083E-03
  16  norm          .10000E-03    1.4032        .15375E-05** at limit **
  17  norm          8.4669        9.6374        .39214E-06    .54830E-04
  18  Prefactor     .10000E-03    30.570        .11748E-05** at limit **
  19  Prefactor     .10000E-03    2.6832       -.26616E-06** at limit **
  20  Prefactor     .10000E-03    31.780       -.14224E-05** at limit **
  21  Prefactor     .10000E-03    48.666       -.60136E-07** at limit **
  22  Prefactor     .10000E-03    57.191        .19893E-05** at limit **
  23  Prefactor     .10000E-03    3.4215       -.90649E-07** at limit **
  24  Normalizat    .89538        .21050        .14475E-06    .18888E-03
  25  Prefactor     1.1392        .24572        .21034E-05    .25405E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.16872
  Prefactor  = 21.7398
  Prefactor  = 2.38256
  Prefactor  = 0.000100001
  norm       = 31.762
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.7266
  norm       = 0.0423582
  Prefactor  = 10.375
  Prefactor  = 4.712
  Prefactor  = 138.115
  norm       = 0.0001
  norm       = 8.46685
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.895377
  Prefactor  = 1.13917
 **********
 **   18 **HESSE 
 **********

 FCN=   4288.078     FROM HESSE     STATUS=OK           427 CALLS     3402 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    189.32        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    52.977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.1687        .38966        .21997E-04   -1.5492    
   4  Prefactor     21.740        27.722        .85808E-04   -1.4775    
   5  Prefactor     2.3826        27.794        .26422E-03   -1.5399    
   6  Prefactor     .10000E-03    81.215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          31.762        25.578        .71114E-04   -1.4580    
   8  norm          .10000E-03    42.822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    .89275        .60246E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    15.927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     23.727        28.384        .82234E-04   -1.4733    
  12  norm          .42358E-01    18.771        .14943E-02   -1.5667    
  13  Prefactor     10.375        18.793        .62174E-03   -1.5064    
  14  Prefactor     4.7120        5.0591        .14681E-03   -1.5274    
  15  Prefactor     138.11        65.693        .17143E-03   -1.3352    
  16  norm          .10000E-03    1.4440        .11562E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          8.4669        9.6341        .13778E-03   -1.5126    
  18  Prefactor     .10000E-03    30.568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.7297        .10488E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    31.830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    49.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    57.237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.4294        .11832E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .89538        .24463        .25779E-03   -.96623    
  25  Prefactor     1.1392        .28939        .27974E-03   -.88224    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.057e-09
Minuit parameter uncertainties:
  1  0.000908009
  2  8.4989e-05
  3  0.389659
  4  27.7381
  5  16.2845
  6  0.000480796
  7  25.5873
  8  0.00019998
  9  1.16144e-06
  10  7.6605e-07
  11  28.4
  12  1.78184
  13  18.8037
  14  5.05953
  15  65.7275
  16  3.12508e-05
  17  9.63589
  18  5.2624e-05
  19  2.37793e-05
  20  9.11194e-05
  21  0.000323606
  22  0.000149736
  23  1.05138e-05
  24  0.244933
  25  0.289795
Done.

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

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  1.381e+02  6.573e+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.139e+00  2.898e-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.954e-01  2.449e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.99
Ra Dec: 174.764 40.562
Photon Index (Fixed Index): 2.72 +/- 0.00
Photon Flux (Fixed Index): 1.47e-07 +/- 6.97e-08
Energy Flux (Fixed Index): 3.47e-05 +/- 1.65e-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) = 4288.07792796
delta logL = 0.000544186696061

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4288.07714673
delta logL = 0.00132541096627

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    141.79       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6934       1.0000          .0000       10.000    
     3 'Normalizat'    .89752       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1369       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=   4288.077     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      254 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     141.81        102.02        .33833E-04   -.70115E-03
   2  Index         2.6933        .54184        .45026E-02   -.56864E-03
   3  Normalizat    .89765        .24334        .25751E-03    .25253E-03
   4  Prefactor     1.1368        .29026        .27998E-03    .39608E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 141.809
  Index      = 2.69329
  Normalizat = 0.897647
  Prefactor  = 1.1368
 **********
 **   18 **HESSE 
 **********

 FCN=   4288.077     FROM HESSE     STATUS=OK            23 CALLS      277 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     141.81        97.455        .67665E-05   -1.3321    
   2  Index         2.6933        .51731        .18010E-03   -.47951    
   3  Normalizat    .89765        .24328        .51502E-04   -.96543    
   4  Prefactor     1.1368        .29011        .55996E-04   -.88299    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.73786e-09
Minuit parameter uncertainties:
  1  97.5655
  2  0.518491
  3  0.243581
  4  0.290514
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/978775': 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) = 4288.07714658
delta logL = 0.00132556264634

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  1.418e+02  9.757e+01  1.000e-04  1.000e+04 ( 1.000e-13)
342        Index:  2.693e+00  5.185e-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:  1.137e+00  2.905e-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.976e-01  2.436e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.92
Ra Dec: 174.764 40.562
Photon Index (Free Index): 2.69 +/- 0.52
Photon Flux (Free Index): 1.45e-07 +/- 7.32e-08
Energy Flux (Free Index): 3.51e-05 +/- 1.83e-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/978775/cmap_HighResolution_254102401_254361601_4FGL_J1139.0+4033_daily_bin57.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.47e-07', energy_flux2='3.51e-05', photon_flux_error='6.97e-08', dlogl='1.33e-03', energy_flux='3.47e-05', photon_flux2='1.45e-07', job_status='DONE', time_completed='2021-09-04 06:55:07.614260', photon_index_error2='0.52', photon_index2='2.69', ts='6.99', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', energy_flux_error2='1.83e-05', EG='0.90', time_epoch_completed='1630763707.61', return_code='0', job_id='978775', GAL2='1.14', EG2='0.90', return_code2='0', energy_flux_error='1.65e-05', photon_flux_error2='7.32e-08', ts2='6.92', photon_index='2.72' WHERE bin_id='57' AND source_name='4FGL J1139.0+4033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 06:55:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0141>
Subject: Job 978775: <4FGL_J1139.0+4033_daily_bin57> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1139.0+4033_daily_bin57 174.764 40.5617 254102401 254361601 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 :                                   595.25 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             256.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   824 sec.
    Turnaround time :                            827 sec.

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

