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


Performing analysis on: 4FGL_J1139.0+4033_daily_bin68
RA = 174.764, Dec = 40.5617
tmin = 256953601, tmax = 257212801
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='980103', job_status='RUN', time_executed='2021-09-04 06:48:11.349527', time_epoch_executed='1630763291.35' WHERE source_name='4FGL J1139.0+4033' and cadence='daily' and bin_id='68'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/980103

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/980103/ft1_4FGL_J1139.0+4033_daily_bin68.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/980103/ft2_4FGL_J1139.0+4033_daily_bin68.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/980103/ft1_4FGL_J1139.0+4033_daily_bin68.fits outfile=/scratch/kocevski/980103/ft1_filteredMKT_4FGL_J1139.0+4033_daily_bin68.fits ra=174.764 dec=40.5617 rad=12.0 tmin=256953601.0 tmax=257212801.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.25
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/980103/ft2_4FGL_J1139.0+4033_daily_bin68.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/980103/ft1_filteredMKT_4FGL_J1139.0+4033_daily_bin68.fits evtable="EVENTS" outfile="/scratch/kocevski/980103/ft1_filtered_4FGL_J1139.0+4033_daily_bin68.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/980103/ft1_filtered_4FGL_J1139.0+4033_daily_bin68.fits" evtable="EVENTS" scfile=/scratch/kocevski/980103/ft2_4FGL_J1139.0+4033_daily_bin68.fits sctable="SC_DATA" outfile=/scratch/kocevski/980103/ltcube_256953601_257212801_4FGL_J1139.0+4033_daily_bin68.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/980103/ft2_4FGL_J1139.0+4033_daily_bin68.fits
.....................!
real 13.03
user 12.50
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/980103/ft1_filtered_4FGL_J1139.0+4033_daily_bin68.fits evtable="EVENTS" scfile=/scratch/kocevski/980103/ft2_4FGL_J1139.0+4033_daily_bin68.fits sctable="SC_DATA" expcube=/scratch/kocevski/980103/ltcube_256953601_257212801_4FGL_J1139.0+4033_daily_bin68.fits outfile=/scratch/kocevski/980103/expmap_256953601_257212801_4FGL_J1139.0+4033_daily_bin68.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/980103/ltcube_256953601_257212801_4FGL_J1139.0+4033_daily_bin68.fits
.....................!
real 192.57
user 186.86
sys 5.09

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/980103/ft1_filtered_4FGL_J1139.0+4033_daily_bin68.fits scfile=/scratch/kocevski/980103/ft2_4FGL_J1139.0+4033_daily_bin68.fits outfile=/scratch/kocevski/980103/cmap_256953601_257212801_4FGL_J1139.0+4033_daily_bin68.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/980103/ft1_filtered_4FGL_J1139.0+4033_daily_bin68.fits scfile=/scratch/kocevski/980103/ft2_4FGL_J1139.0+4033_daily_bin68.fits outfile=/scratch/kocevski/980103/cmap_HighResolution_256953601_257212801_4FGL_J1139.0+4033_daily_bin68.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.34
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .83989       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.405       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    80.083       1.0000         .10000E-03   10000.    
     7 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .63709       1.0000         .10000E-03   10000.    
    10 'Prefactor '    41.796       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.644       1.0000         .10000E-03   10000.    
    12 'norm      '    .60221       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.2385       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .78677E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    53.049       1.0000         .10000E-03   10000.    
    16 'norm      '    .43102       1.0000         .10000E-03   10000.    
    17 'norm      '    11.495       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.7424       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.3997       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.8491       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .95855       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .92591       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=   7290.379     FROM MIGRAD    STATUS=CONVERGED    564 CALLS     2878 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    32.088        .28311E-05** at limit **
   2  Prefactor     .10000E-03    26.093        .32773E-05** at limit **
   3  norm          .83985        .25650       -.58752E-08    .43680E-04
   4  Prefactor     11.403        14.378       -.17818E-05   -.15932E-04
   5  Prefactor     .10000E-03    4.1701       -.11073E-07** at limit **
   6  Prefactor     80.072        72.429       -.45998E-05    .63605E-04
   7  norm          .10000E-03    13.611        .16425E-05** at limit **
   8  norm          .10000E-03    12.420       -.16683E-05** at limit **
   9  Prefactor     .63655        3.8076        .62134E-05   -.53288E-03
  10  Prefactor     41.849        54.870       -.42576E-05   -.24656E-03
  11  Prefactor     14.642        14.003       -.62778E-06   -.42833E-04
  12  norm          .60176        1.6657       -.12892E-05   -.12436E-02
  13  Prefactor     1.2349        32.679        .35826E-05   -.26977E-05
  14  Prefactor     .10001E-03    1.9710       -.78112E-06** at limit **
  15  Prefactor     53.074        36.527        .91643E-05   -.99262E-04
  16  norm          .42887        .88329       -.86113E-06   -.16618E-02
  17  norm          11.496        6.8654        .11455E-06    .15133E-04
  18  Prefactor     3.7322        31.880       -.64323E-05    .81763E-04
  19  Prefactor     1.3954        3.9407        .22691E-05    .81653E-03
  20  Prefactor     .10000E-03    14.092        .17666E-05** at limit **
  21  Prefactor     1.8237        64.178       -.15031E-04   -.44599E-04
  22  Prefactor     .10000E-03    19.634       -.55404E-05** at limit **
  23  Prefactor     .10000E-03    3.5399        .11284E-06** at limit **
  24  Normalizat    .95873        .15351       -.16609E-05    .31954E-03
  25  Prefactor     .92580        .17516       -.81032E-06    .13956E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.839852
  Prefactor  = 11.4033
  Prefactor  = 0.0001
  Prefactor  = 80.0718
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.636546
  Prefactor  = 41.8487
  Prefactor  = 14.6416
  norm       = 0.601762
  Prefactor  = 1.2349
  Prefactor  = 0.000100013
  Prefactor  = 53.0744
  norm       = 0.428865
  norm       = 11.4959
  Prefactor  = 3.73217
  Prefactor  = 1.39538
  Prefactor  = 0.0001
  Prefactor  = 1.82369
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 0.958733
  Prefactor  = 0.925803
 **********
 **   18 **HESSE 
 **********

 FCN=   7290.379     FROM HESSE     STATUS=OK           431 CALLS     3309 TOTAL
                     EDM=   .93E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    32.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    26.079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .83985        .25703        .22386E-04   -1.5525    
   4  Prefactor     11.403        14.415        .11863E-03   -1.5032    
   5  Prefactor     .10000E-03    4.1723        .17025E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     80.072        72.362        .22440E-03   -1.3916    
   7  norm          .10000E-03    13.818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    12.413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .63655        4.5451        .21772E-02   -1.5548    
  10  Prefactor     41.849        58.967        .62006E-04   -1.4413    
  11  Prefactor     14.642        13.444        .10466E-03   -1.4942    
  12  norm          .60176        1.6069        .16350E-03   -1.5553    
  13  Prefactor     1.2349        30.531        .40317E-03   -1.5486    
  14  Prefactor     .10001E-03    19.523        .22143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     53.074        35.934        .55067E-04   -1.4250    
  16  norm          .42887        .84849        .97837E-04   -1.5577    
  17  norm          11.496        6.8653        .11816E-03   -1.5030    
  18  Prefactor     3.7322        31.273        .20872E-03   -1.5322    
  19  Prefactor     1.3954        3.5440        .20504E-03   -1.5472    
  20  Prefactor     .10000E-03    14.095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.8237        53.731        .30662E-03   -1.5438    
  22  Prefactor     .10000E-03    19.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.5632        .15687E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .95873        .17852        .22862E-03   -.94426    
  25  Prefactor     .92580        .20405        .27713E-03   -.95245    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.34067e-08
Minuit parameter uncertainties:
  1  8.80174e-05
  2  0.000122991
  3  0.257027
  4  14.4193
  5  5.38889e-06
  6  72.4413
  7  2.89005e-05
  8  5.28076e-05
  9  3.40195
  10  59.0492
  11  13.4471
  12  1.60706
  13  12.287
  14  0.00101849
  15  35.9485
  16  0.848517
  17  6.86579
  18  21.6222
  19  3.54454
  20  4.3842e-05
  21  19.8168
  22  0.000330363
  23  1.20797e-05
  24  0.178634
  25  0.204217
Done.

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

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  5.307e+01  3.595e+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.258e-01  2.042e-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.587e-01  1.786e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.07
Ra Dec: 174.764 40.562
Photon Index (Fixed Index): 2.72 +/- 0.00
Photon Flux (Fixed Index): 5.63e-08 +/- 3.81e-08
Energy Flux (Fixed Index): 1.33e-05 +/- 9.04e-06

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) = 7290.24418366
delta logL = 0.135162479673

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7290.24375406
delta logL = 0.135592080142

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    65.750       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4362       1.0000          .0000       10.000    
     3 'Normalizat'    .96940       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91624       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=   7290.244     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      265 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     65.748        45.414        .49495E-04    .36177E-03
   2  Index         2.4362        .53090        .72703E-02    .17195E-03
   3  Normalizat    .96942        .17055        .22752E-03   -.12672E-03
   4  Prefactor     .91622        .20247        .27837E-03   -.12330E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 65.7481
  Index      = 2.43616
  Normalizat = 0.969419
  Prefactor  = 0.916216
 **********
 **   18 **HESSE 
 **********

 FCN=   7290.244     FROM HESSE     STATUS=OK            25 CALLS      290 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     65.748        44.643        .98989E-05   -1.4084    
   2  Index         2.4362        .52168        .29081E-03   -.53841    
   3  Normalizat    .96942        .17068        .91009E-05   -.94062    
   4  Prefactor     .91622        .20262        .11135E-04   -.95577    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.33416e-10
Minuit parameter uncertainties:
  1  44.6662
  2  0.522969
  3  0.170774
  4  0.202784
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/980103': 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) = 7290.24375405
delta logL = 0.135592090335

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  6.575e+01  4.467e+01  1.000e-04  1.000e+04 ( 1.000e-13)
342        Index:  2.436e+00  5.230e-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.162e-01  2.028e-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.694e-01  1.708e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.35
Ra Dec: 174.764 40.562
Photon Index (Free Index): 2.44 +/- 0.52
Photon Flux (Free Index): 4.85e-08 +/- 3.54e-08
Energy Flux (Free Index): 1.52e-05 +/- 1.04e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/980103/cmap_HighResolution_256953601_257212801_4FGL_J1139.0+4033_daily_bin68.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.63e-08', energy_flux2='1.52e-05', photon_flux_error='3.81e-08', dlogl='1.36e-01', energy_flux='1.33e-05', photon_flux2='4.85e-08', job_status='DONE', time_completed='2021-09-04 07:00:57.420998', photon_index_error2='0.52', photon_index2='2.44', ts='4.07', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='1.04e-05', EG='0.96', time_epoch_completed='1630764057.42', return_code='0', job_id='980103', GAL2='0.92', EG2='0.97', return_code2='0', energy_flux_error='9.04e-06', photon_flux_error2='3.54e-08', ts2='4.35', photon_index='2.72' WHERE bin_id='68' AND source_name='4FGL J1139.0+4033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 07:00:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 980103: <4FGL_J1139.0+4033_daily_bin68> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1139.0+4033_daily_bin68 174.764 40.5617 256953601 257212801 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 :                                   764.19 sec.
    Max Memory :                                 1259 MB
    Average Memory :                             333.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   881 sec.
    Turnaround time :                            884 sec.

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

