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


Performing analysis on: 4FGL_J1139.0+4033_daily_bin1257
RA = 174.764, Dec = 40.5617
tmin = 565142401, tmax = 565401601
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='989578', job_status='RUN', time_executed='2021-09-04 07:12:11.530732', time_epoch_executed='1630764731.53' WHERE source_name='4FGL J1139.0+4033' and cadence='daily' and bin_id='1257'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/989578

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/989578/ft1_4FGL_J1139.0+4033_daily_bin1257.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/989578/ft2_4FGL_J1139.0+4033_daily_bin1257.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/989578/ft1_4FGL_J1139.0+4033_daily_bin1257.fits outfile=/scratch/kocevski/989578/ft1_filteredMKT_4FGL_J1139.0+4033_daily_bin1257.fits ra=174.764 dec=40.5617 rad=12.0 tmin=565142401.0 tmax=565401601.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 3.55
user 3.30
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/989578/ft1_filtered_4FGL_J1139.0+4033_daily_bin1257.fits evtable="EVENTS" scfile=/scratch/kocevski/989578/ft2_4FGL_J1139.0+4033_daily_bin1257.fits sctable="SC_DATA" expcube=/scratch/kocevski/989578/ltcube_565142401_565401601_4FGL_J1139.0+4033_daily_bin1257.fits outfile=/scratch/kocevski/989578/expmap_565142401_565401601_4FGL_J1139.0+4033_daily_bin1257.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/989578/ltcube_565142401_565401601_4FGL_J1139.0+4033_daily_bin1257.fits
.....................!
real 189.83
user 185.85
sys 3.62

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/989578/ft1_filtered_4FGL_J1139.0+4033_daily_bin1257.fits scfile=/scratch/kocevski/989578/ft2_4FGL_J1139.0+4033_daily_bin1257.fits outfile=/scratch/kocevski/989578/cmap_565142401_565401601_4FGL_J1139.0+4033_daily_bin1257.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.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .95561       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11904E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    11.873       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .46908       1.0000         .10000E-03   10000.    
    10 'Prefactor '    21.230       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.0595       1.0000         .10000E-03   10000.    
    12 'norm      '    2.2939       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.7429       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11415E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.2691       1.0000         .10000E-03   10000.    
    17 'norm      '    19.951       1.0000         .10000E-03   10000.    
    18 'Prefactor '    21.078       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.2407       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .13250E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.1780       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.1718       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.5774       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .83500       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2473       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=   7219.159     FROM MIGRAD    STATUS=CONVERGED    626 CALLS     3405 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.343       -.14947E-07** at limit **
   2  Prefactor     .10000E-03    33.468       -.11292E-07** at limit **
   3  norm          .95561        .26127       -.10467E-07    .21657E-03
   4  Prefactor     .10000E-03    4.4896       -.70359E-07** at limit **
   5  Prefactor     .10000E-03    4.0799       -.25918E-07** at limit **
   6  Prefactor     .10000E-03    39.708       -.33508E-07** at limit **
   7  norm          .10000E-03    3.5692       -.78330E-07** at limit **
   8  norm          11.868        35.160        .10210E-06   -.17566E-05
   9  Prefactor     .44854        4.8459        .22490E-05    .37995E-03
  10  Prefactor     21.542        63.683       -.94578E-05    .54166E-04
  11  Prefactor     3.0596        11.625        .92125E-06   -.11594E-04
  12  norm          2.2926        1.8502       -.12042E-06    .16916E-03
  13  Prefactor     .10000E-03    7.4349        .21592E-06** at limit **
  14  Prefactor     7.7488        5.6890       -.98048E-06   -.30141E-04
  15  Prefactor     .10000E-03    142.38       -.27672E-05** at limit **
  16  norm          1.2678        .86249        .29001E-07   -.57438E-04
  17  norm          19.949        10.123        .64373E-07   -.46663E-04
  18  Prefactor     21.053        25.769        .21971E-05    .99289E-04
  19  Prefactor     5.2408        4.1577        .16787E-06   -.83792E-04
  20  Prefactor     .10000E-03    260.48        .44548E-05** at limit **
  21  Prefactor     3.1784        28.688        .30184E-06   -.32186E-04
  22  Prefactor     4.1853        74.209        .36952E-05   -.31571E-05
  23  Prefactor     2.5753        7.2877        .72032E-06   -.15730E-03
  24  Normalizat    .83505        .16592       -.23973E-05    .99812E-04
  25  Prefactor     1.2473        .19664        .97927E-06   -.14829E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.955615
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 11.8684
  Prefactor  = 0.44854
  Prefactor  = 21.5417
  Prefactor  = 3.05959
  norm       = 2.29261
  Prefactor  = 0.0001
  Prefactor  = 7.74879
  Prefactor  = 0.000100002
  norm       = 1.26783
  norm       = 19.9487
  Prefactor  = 21.0534
  Prefactor  = 5.24083
  Prefactor  = 0.000100001
  Prefactor  = 3.17838
  Prefactor  = 4.18534
  Prefactor  = 2.57528
  Normalizat = 0.835051
  Prefactor  = 1.24727
 **********
 **   18 **HESSE 
 **********

 FCN=   7219.159     FROM HESSE     STATUS=OK           433 CALLS     3838 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    33.514        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .95561        .26148        .21969E-04   -1.5512    
   4  Prefactor     .10000E-03    4.5002        .17577E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.0833        .16759E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    39.733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.5738        .15674E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          11.868        35.206        .11626E-03   -1.5019    
   9  Prefactor     .44854        12.346        .19372E-02   -1.5574    
  10  Prefactor     21.542        83.071        .86930E-04   -1.4779    
  11  Prefactor     3.0596        11.585        .23193E-03   -1.5358    
  12  norm          2.2926        1.8498        .95756E-04   -1.5405    
  13  Prefactor     .10000E-03    7.4829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.7488        5.7510        .14411E-03   -1.5151    
  15  Prefactor     .10000E-03    147.57        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.2678        .85543        .61677E-04   -1.5483    
  17  norm          19.949        10.119        .89669E-04   -1.4814    
  18  Prefactor     21.053        25.804        .87242E-04   -1.4790    
  19  Prefactor     5.2408        4.0744        .12582E-03   -1.5250    
  20  Prefactor     .10000E-03    266.23        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.1784        27.600        .22732E-03   -1.5351    
  22  Prefactor     4.1853        71.680        .19733E-03   -1.5299    
  23  Prefactor     2.5753        7.2532        .25422E-03   -1.5387    
  24  Normalizat    .83505        .19258        .25864E-03   -.98781    
  25  Prefactor     1.2473        .23259        .26942E-03   -.84889    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37099e-09
Minuit parameter uncertainties:
  1  1.03905e-05
  2  3.81167e-05
  3  0.261476
  4  1.20489e-05
  5  5.4057e-06
  6  2.20602e-05
  7  7.96034e-06
  8  35.2675
  9  4.70693
  10  83.5219
  11  11.5931
  12  1.84985
  13  1.85849e-05
  14  5.75138
  15  0.00100373
  16  0.855437
  17  10.1195
  18  25.8172
  19  4.07461
  20  0.00117622
  21  18.7434
  22  34.6897
  23  7.25565
  24  0.192737
  25  0.232779
Done.

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

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  1.000e-04  1.004e-03  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.247e+00  2.328e-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.351e-01  1.927e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 174.764 40.562
Photon Flux Upper Limit: 6.87e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.42e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/989578/likelihoodResults_565142401_565401601_4FGL_J1139.0+4033_daily_bin1257.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7219.15940504
delta logL = -3.22217983921e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7219.15937525
delta logL = -2.43274280365e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15562E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8826       1.0000          .0000       10.000    
     3 'Normalizat'    .83505       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2473       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7219.159     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      245 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10701E-03    .44922        .12196    ** at limit **
   2  Index         2.8959        8.5021        .50000       -.38828E-05
   3  Normalizat    .83505        .64227E-03    .44066E-01    .39994E-03
   4  Prefactor     1.2473        .80388E-03    .60919E-01    .30328E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000107009
  Index      = 2.89592
  Normalizat = 0.83505
  Prefactor  = 1.24727
 **********
 **   18 **HESSE 
 **********

 FCN=   7219.159     FROM HESSE     STATUS=NOT POSDEF    41 CALLS      286 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10701E-03    .65111        .10273       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8959        8.2298        .50000       -.43434    
   3  Normalizat    .83505        .68594E-03    .25864E-03   -.98781    
   4  Prefactor     1.2473        .85838E-03    .26942E-03   -.84889    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.51435e-09
Minuit parameter uncertainties:
  1  0.00427261
  2  50.2313
  3  0.000685937
  4  0.000858376
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/989578': 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): 102
logL (Free Index) = 7219.15937266
delta logL = 1.58522198035e-07

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  1.070e-04  4.273e-03  1.000e-04  1.000e+04 ( 1.000e-13)
342        Index:  2.896e+00  5.023e+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.247e+00  8.584e-04  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.350e-01  6.859e-04  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 174.764 40.562

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.42e-03', job_status='DONE', photon_flux_upper_limit='6.87e-08', time_completed='2021-09-04 07:27:44.862034', job_id='989578', GAL2='1.25', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1630765664.86', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.25', dlogl='1.59e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.72' WHERE bin_id='1257' AND source_name='4FGL J1139.0+4033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 07:27:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 989578: <4FGL_J1139.0+4033_daily_bin1257> in cluster <slac> Done

Job <4FGL_J1139.0+4033_daily_bin1257> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 07:11:44 2021
Job was executed on host(s) <bullet0274>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 07:11:46 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:11:46 2021
Terminated at Sat Sep  4 07:27:45 2021
Results reported at Sat Sep  4 07:27:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1139.0+4033_daily_bin1257 174.764 40.5617 565142401 565401601 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 :                                   927.09 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             318.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   959 sec.
    Turnaround time :                            961 sec.

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

