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


Performing analysis on: 4FGL_J1139.0+4033_daily_bin847
RA = 174.764, Dec = 40.5617
tmin = 458870401, tmax = 459129601
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='987551', job_status='RUN', time_executed='2021-09-04 07:06:50.077493', time_epoch_executed='1630764410.08' WHERE source_name='4FGL J1139.0+4033' and cadence='daily' and bin_id='847'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/987551

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/987551/ft1_4FGL_J1139.0+4033_daily_bin847.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/987551/ft2_4FGL_J1139.0+4033_daily_bin847.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/987551/ft1_4FGL_J1139.0+4033_daily_bin847.fits outfile=/scratch/kocevski/987551/ft1_filteredMKT_4FGL_J1139.0+4033_daily_bin847.fits ra=174.764 dec=40.5617 rad=12.0 tmin=458870401.0 tmax=459129601.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.55
user 3.31
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/987551/ft1_filtered_4FGL_J1139.0+4033_daily_bin847.fits evtable="EVENTS" scfile=/scratch/kocevski/987551/ft2_4FGL_J1139.0+4033_daily_bin847.fits sctable="SC_DATA" expcube=/scratch/kocevski/987551/ltcube_458870401_459129601_4FGL_J1139.0+4033_daily_bin847.fits outfile=/scratch/kocevski/987551/expmap_458870401_459129601_4FGL_J1139.0+4033_daily_bin847.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/987551/ltcube_458870401_459129601_4FGL_J1139.0+4033_daily_bin847.fits
.....................!
real 191.72
user 185.71
sys 5.63

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/987551/ft1_filtered_4FGL_J1139.0+4033_daily_bin847.fits scfile=/scratch/kocevski/987551/ft2_4FGL_J1139.0+4033_daily_bin847.fits outfile=/scratch/kocevski/987551/cmap_458870401_459129601_4FGL_J1139.0+4033_daily_bin847.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.56
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/987551/ft1_filtered_4FGL_J1139.0+4033_daily_bin847.fits scfile=/scratch/kocevski/987551/ft2_4FGL_J1139.0+4033_daily_bin847.fits outfile=/scratch/kocevski/987551/cmap_HighResolution_458870401_459129601_4FGL_J1139.0+4033_daily_bin847.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.59
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    60.409       1.0000         .10000E-03   10000.    
     3 'norm      '    1.8996       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    11.794       1.0000         .10000E-03   10000.    
     8 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.0452       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.7196       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.9803       1.0000         .10000E-03   10000.    
    15 'Prefactor '    67.840       1.0000         .10000E-03   10000.    
    16 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10116E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    50.694       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.5023       1.0000         .10000E-03   10000.    
    20 'Prefactor '    23.655       1.0000         .10000E-03   10000.    
    21 'Prefactor '    19.119       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .35899E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    15.806       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .69163       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2397       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=   6080.473     FROM MIGRAD    STATUS=CONVERGED   1028 CALLS     3766 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.851        .18142E-02** at limit **
   2  Prefactor     60.381        61.961        .25811E-03    .90293E-05
   3  norm          1.8996        .38161        .20792E-04    .31060E-02
   4  Prefactor     .10000E-03    20.023        .18142E-02** at limit **
   5  Prefactor     .10000E-03    5.7868        .18142E-02** at limit **
   6  Prefactor     .10000E-03    30.493        .18142E-02** at limit **
   7  norm          11.797        18.561        .11665E-03    .16452E-03
   8  norm          .10000E-03    14.942        .18142E-02** at limit **
   9  Prefactor     4.0460        3.0515        .10807E-03   -.35704E-03
  10  Prefactor     .10000E-03    45.065        .18142E-02** at limit **
  11  Prefactor     .10000E-03    4.7688        .16626E-02** at limit **
  12  norm          1.7210        2.0599        .11525E-03   -.18210E-03
  13  Prefactor     .10000E-03    4.0766        .15363E-02** at limit **
  14  Prefactor     2.9809        3.8136        .16463E-03   -.38878E-04
  15  Prefactor     67.821        41.871        .48731E-04    .16610E-04
  16  norm          .10000E-03    .52558        .92907E-03** at limit **
  17  norm          .10000E-03    3.0556        .13308E-02** at limit **
  18  Prefactor     50.666        32.383        .56326E-04   -.40545E-03
  19  Prefactor     1.5044        4.3012        .19959E-03   -.49174E-03
  20  Prefactor     23.652        41.269        .82358E-04    .28298E-04
  21  Prefactor     19.115        33.667        .91600E-04   -.15700E-03
  22  Prefactor     .10001E-03    30.050        .12012    ** at limit **
  23  Prefactor     15.800        10.510        .10074E-03   -.32185E-03
  24  Normalizat    .69159        .20908        .28325E-03   -.65464E-04
  25  Prefactor     1.2397        .24552        .26370E-03   -.70832E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 60.3806
  norm       = 1.89962
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.7973
  norm       = 0.0001
  Prefactor  = 4.04596
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.72103
  Prefactor  = 0.0001
  Prefactor  = 2.98092
  Prefactor  = 67.8205
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 50.6662
  Prefactor  = 1.50437
  Prefactor  = 23.652
  Prefactor  = 19.115
  Prefactor  = 0.000100005
  Prefactor  = 15.8003
  Normalizat = 0.691594
  Prefactor  = 1.23973
 **********
 **   18 **HESSE 
 **********

 FCN=   6080.473     FROM HESSE     STATUS=OK           411 CALLS     4177 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.852        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     60.381        61.962        .10325E-04   -1.4152    
   3  norm          1.8996        .38161        .41584E-05   -1.5432    
   4  Prefactor     .10000E-03    20.031        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.7870        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    30.493        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          11.797        18.560        .46659E-05   -1.5021    
   8  norm          .10000E-03    14.942        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.0460        3.0510        .43228E-05   -1.5306    
  10  Prefactor     .10000E-03    45.068        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.7689        .33251E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.7210        2.0597        .46099E-05   -1.5446    
  13  Prefactor     .10000E-03    4.0768        .30726E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.9809        3.8133        .65853E-05   -1.5363    
  15  Prefactor     67.821        41.870        .97463E-05   -1.4059    
  16  norm          .10000E-03    .52587        .18581E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.0556        .26617E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     50.666        32.392        .11265E-04   -1.4283    
  19  Prefactor     1.5044        4.2937        .79835E-05   -1.5463    
  20  Prefactor     23.652        41.264        .32943E-05   -1.4735    
  21  Prefactor     19.115        33.607        .36640E-05   -1.4833    
  22  Prefactor     .10001E-03    29.093        .12332       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     15.800        10.511        .40297E-05   -1.4913    
  24  Normalizat    .69159        .20929        .11330E-04   -1.0423    
  25  Prefactor     1.2397        .24580        .10548E-04   -.85117    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05515e-09
Minuit parameter uncertainties:
  1  2.02524e-05
  2  62.0287
  3  0.381607
  4  0.000105287
  5  8.82411e-06
  6  6.72747e-05
  7  18.5686
  8  1.15863e-05
  9  3.05112
  10  0.000259869
  11  1.3069e-05
  12  2.05977
  13  1.26878e-05
  14  3.81361
  15  41.8881
  16  1.68318e-05
  17  2.21752e-05
  18  32.4037
  19  4.29459
  20  41.3143
  21  33.6402
  22  0.000792663
  23  10.5121
  24  0.209533
  25  0.246024
Done.

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

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  6.782e+01  4.189e+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.240e+00  2.460e-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:  6.916e-01  2.095e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.79
Ra Dec: 174.764 40.562
Photon Index (Fixed Index): 2.72 +/- 0.00
Photon Flux (Fixed Index): 7.20e-08 +/- 4.44e-08
Energy Flux (Fixed Index): 1.71e-05 +/- 1.05e-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) = 6080.45961318
delta logL = 0.0131874341387

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6080.45061769
delta logL = 0.0221829263619

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    61.444       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8418       1.0000          .0000       10.000    
     3 'Normalizat'    .68579       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2447       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=   6080.451     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      265 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     61.438        51.231        .51189E-04    .64549E-03
   2  Index         2.8418        .61289        .61523E-02    .33090E-03
   3  Normalizat    .68617        .20332        .28425E-03   -.34036E-03
   4  Prefactor     1.2442        .24445        .26330E-03   -.44075E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 61.4376
  Index      = 2.84183
  Normalizat = 0.686173
  Prefactor  = 1.2442
 **********
 **   18 **HESSE 
 **********

 FCN=   6080.451     FROM HESSE     STATUS=OK            23 CALLS      288 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     61.438        49.062        .10238E-04   -1.4139    
   2  Index         2.8418        .58659        .24609E-03   -.44630    
   3  Normalizat    .68617        .20344        .11370E-04   -1.0444    
   4  Prefactor     1.2442        .24458        .52660E-04   -.84982    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56657e-09
Minuit parameter uncertainties:
  1  49.0941
  2  0.588257
  3  0.203661
  4  0.2448
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/987551': 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) = 6080.45061579
delta logL = 0.0221848184528

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  6.144e+01  4.909e+01  1.000e-04  1.000e+04 ( 1.000e-13)
342        Index:  2.842e+00  5.883e-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.244e+00  2.448e-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:  6.862e-01  2.037e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.83
Ra Dec: 174.764 40.562
Photon Index (Free Index): 2.84 +/- 0.59
Photon Flux (Free Index): 7.69e-08 +/- 5.09e-08
Energy Flux (Free Index): 1.67e-05 +/- 1.02e-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/987551/cmap_HighResolution_458870401_459129601_4FGL_J1139.0+4033_daily_bin847.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.20e-08', energy_flux2='1.67e-05', photon_flux_error='4.44e-08', dlogl='2.22e-02', energy_flux='1.71e-05', photon_flux2='7.69e-08', job_status='DONE', time_completed='2021-09-04 07:19:54.192599', photon_index_error2='0.59', photon_index2='2.84', ts='4.79', fit_tolerance='1e-08', GAL='1.24', photon_index_error='0.00', energy_flux_error2='1.02e-05', EG='0.69', time_epoch_completed='1630765194.19', return_code='0', job_id='987551', GAL2='1.24', EG2='0.69', return_code2='0', energy_flux_error='1.05e-05', photon_flux_error2='5.09e-08', ts2='4.83', photon_index='2.72' WHERE bin_id='847' AND source_name='4FGL J1139.0+4033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 07:19:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0179>
Subject: Job 987551: <4FGL_J1139.0+4033_daily_bin847> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1139.0+4033_daily_bin847 174.764 40.5617 458870401 459129601 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 :                                   777.28 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             332.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   797 sec.
    Turnaround time :                            800 sec.

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

