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


Performing analysis on: 4FGL_J1139.0+4033_daily_bin1002
RA = 174.764, Dec = 40.5617
tmin = 499046401, tmax = 499305601
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='987787', job_status='RUN', time_executed='2021-09-04 07:07:12.412413', time_epoch_executed='1630764432.41' WHERE source_name='4FGL J1139.0+4033' and cadence='daily' and bin_id='1002'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/987787

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/987787/ft1_4FGL_J1139.0+4033_daily_bin1002.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/987787/ft2_4FGL_J1139.0+4033_daily_bin1002.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/987787/ft1_4FGL_J1139.0+4033_daily_bin1002.fits outfile=/scratch/kocevski/987787/ft1_filteredMKT_4FGL_J1139.0+4033_daily_bin1002.fits ra=174.764 dec=40.5617 rad=12.0 tmin=499046401.0 tmax=499305601.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.27
user 4.03
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/987787/ft1_filtered_4FGL_J1139.0+4033_daily_bin1002.fits evtable="EVENTS" scfile=/scratch/kocevski/987787/ft2_4FGL_J1139.0+4033_daily_bin1002.fits sctable="SC_DATA" expcube=/scratch/kocevski/987787/ltcube_499046401_499305601_4FGL_J1139.0+4033_daily_bin1002.fits outfile=/scratch/kocevski/987787/expmap_499046401_499305601_4FGL_J1139.0+4033_daily_bin1002.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/987787/ltcube_499046401_499305601_4FGL_J1139.0+4033_daily_bin1002.fits
.....................!
real 191.29
user 185.61
sys 5.34

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/987787/ft1_filtered_4FGL_J1139.0+4033_daily_bin1002.fits scfile=/scratch/kocevski/987787/ft2_4FGL_J1139.0+4033_daily_bin1002.fits outfile=/scratch/kocevski/987787/cmap_499046401_499305601_4FGL_J1139.0+4033_daily_bin1002.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.52
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/987787/ft1_filtered_4FGL_J1139.0+4033_daily_bin1002.fits scfile=/scratch/kocevski/987787/ft2_4FGL_J1139.0+4033_daily_bin1002.fits outfile=/scratch/kocevski/987787/cmap_HighResolution_499046401_499305601_4FGL_J1139.0+4033_daily_bin1002.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/987787/ft1_filtered_4FGL_J1139.0+4033_daily_bin1002.fits evtable="EVENTS" scfile=/scratch/kocevski/987787/ft2_4FGL_J1139.0+4033_daily_bin1002.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/987787/Model_4FGL_J1139.0+4033_daily_bin1002.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/987787/ft1_filtered_4FGL_J1139.0+4033_daily_bin1002.fits....................!
real 41.60
user 40.33
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.1069       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.3288       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    6.9307       1.0000         .10000E-03   10000.    
     8 'norm      '    .11281E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.5214       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.784       1.0000         .10000E-03   10000.    
    12 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.3652       1.0000         .10000E-03   10000.    
    15 'Prefactor '    35.905       1.0000         .10000E-03   10000.    
    16 'norm      '    .64169       1.0000         .10000E-03   10000.    
    17 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.7591       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    52.326       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .72726       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2182       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=   4372.919     FROM MIGRAD    STATUS=CONVERGED   1030 CALLS     3349 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.014        .18142E-02** at limit **
   2  Prefactor     .10000E-03    20.040        .18142E-02** at limit **
   3  norm          1.1070        .33755        .20223E-04    .17540E-03
   4  Prefactor     7.3322        16.103        .14816E-03    .10513E-04
   5  Prefactor     .10000E-03    7.7207        .17934E-02** at limit **
   6  Prefactor     .10000E-03    49.438        .18142E-02** at limit **
   7  norm          6.9319        15.654        .15239E-03    .24618E-05
   8  norm          .10000E-03    71.899        .17510    ** at limit **
   9  Prefactor     2.5210        2.4459        .96594E-04   -.19549E-03
  10  Prefactor     .10000E-03    23.447        .18142E-02** at limit **
  11  Prefactor     16.784        15.854        .97761E-04    .96521E-05
  12  norm          .10000E-03    8.2143        .15933E-02** at limit **
  13  Prefactor     .10000E-03    4.7796        .14114E-02** at limit **
  14  Prefactor     7.3657        6.2741        .14461E-03   -.28853E-04
  15  Prefactor     35.872        35.114        .66881E-04   -.48513E-04
  16  norm          .64298        .74309        .60684E-03    .14432E-02
  17  norm          .10000E-03    4.3330        .13439E-02** at limit **
  18  Prefactor     .10000E-03    22.229        .18142E-02** at limit **
  19  Prefactor     2.7636        3.8343        .67560E-03    .21299E-03
  20  Prefactor     .10000E-03    23.876        .18142E-02** at limit **
  21  Prefactor     52.277        34.606        .55445E-04    .91122E-04
  22  Prefactor     .10000E-03    27.955        .18142E-02** at limit **
  23  Prefactor     .10000E-03    4.1628        .13156E-02** at limit **
  24  Normalizat    .72739        .22462        .26058E-03   -.47118E-05
  25  Prefactor     1.2178        .27117        .25442E-03    .12325E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.10698
  Prefactor  = 7.3322
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.93188
  norm       = 0.000100003
  Prefactor  = 2.52103
  Prefactor  = 0.0001
  Prefactor  = 16.7838
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.36574
  Prefactor  = 35.8719
  norm       = 0.642978
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.76362
  Prefactor  = 0.0001
  Prefactor  = 52.2765
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.727391
  Prefactor  = 1.2178
 **********
 **   18 **HESSE 
 **********

 FCN=   4372.919     FROM HESSE     STATUS=OK           411 CALLS     3760 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.014        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    20.040        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.1070        .33754        .80891E-06   -1.5498    
   4  Prefactor     7.3322        16.098        .59263E-05   -1.5166    
   5  Prefactor     .10000E-03    7.7210        .35868E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    49.439        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          6.9319        15.650        .60957E-05   -1.5181    
   8  norm          .10000E-03    73.140        .17281       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.5210        2.4455        .38638E-05   -1.5390    
  10  Prefactor     .10000E-03    23.447        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     16.784        15.852        .39105E-05   -1.4888    
  12  norm          .10000E-03    8.2709        .31866E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.7796        .28228E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.3657        6.2738        .57843E-05   -1.5165    
  15  Prefactor     35.872        35.104        .13376E-04   -1.4509    
  16  norm          .64298        .74279        .24273E-04   -1.5548    
  17  norm          .10000E-03    4.3331        .26879E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    22.232        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.7636        3.8313        .27024E-04   -1.5375    
  20  Prefactor     .10000E-03    23.876        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     52.277        34.586        .11089E-04   -1.4261    
  22  Prefactor     .10000E-03    27.957        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    4.1631        .26312E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .72739        .22481        .10423E-04   -1.0282    
  25  Prefactor     1.2178        .27141        .50884E-04   -.85785    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.47754e-10
Minuit parameter uncertainties:
  1  1.33419e-06
  2  2.96196e-05
  3  0.33754
  4  16.1078
  5  1.40079e-06
  6  9.42613e-05
  7  15.6591
  8  0.000938505
  9  2.44555
  10  2.29908e-05
  11  15.8563
  12  3.22749e-05
  13  6.13472e-06
  14  6.27439
  15  35.1244
  16  0.742802
  17  3.96862e-06
  18  6.16366e-05
  19  3.83163
  20  1.55223e-05
  21  34.5989
  22  7.12589e-05
  23  1.6629e-05
  24  0.225093
  25  0.271727
Done.

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

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  3.587e+01  3.512e+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.218e+00  2.717e-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:  7.274e-01  2.251e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.95
Ra Dec: 174.764 40.562
Photon Index (Fixed Index): 2.72 +/- 0.00
Photon Flux (Fixed Index): 3.81e-08 +/- 3.72e-08
Energy Flux (Fixed Index): 9.02e-06 +/- 8.83e-06

TS (Fixed Index): 1.95
Ra Dec: 174.764 40.562
Photon Flux Upper Limit: 1.29e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.01e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/987787/likelihoodResults_499046401_499305601_4FGL_J1139.0+4033_daily_bin1002.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): 0
logL (Free Index) = 4372.41491643
delta logL = 0.503829329932

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4372.41479905
delta logL = 0.503946715066

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    64.069       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9974       1.0000          .0000       10.000    
     3 'Normalizat'    .74767       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1948       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=   4372.415     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      297 TOTAL
                     EDM=   .79E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     63.985        55.201        .25068E-03   -.52608E-05
   2  Index         1.9970        .59160        .80362E-02    .41804E-05
   3  Normalizat    .74767        .21831        .25725E-03   -.36813E-04
   4  Prefactor     1.1948        .26975        .25628E-03   -.13772E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 63.9846
  Index      = 1.99704
  Normalizat = 0.74767
  Prefactor  = 1.19478
 **********
 **   18 **HESSE 
 **********

 FCN=   4372.415     FROM HESSE     STATUS=OK            25 CALLS      322 TOTAL
                     EDM=   .79E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     63.985        55.079        .10027E-04   -1.4106    
   2  Index         1.9970        .59033        .32145E-03   -.64424    
   3  Normalizat    .74767        .21848        .10290E-04   -1.0204    
   4  Prefactor     1.1948        .26995        .51257E-04   -.86492    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.91016e-11
Minuit parameter uncertainties:
  1  55.1233
  2  0.5925
  3  0.218735
  4  0.270267
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/987787': 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) = 4372.41479759
delta logL = 0.503948173782

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  6.398e+01  5.512e+01  1.000e-04  1.000e+04 ( 1.000e-13)
342        Index:  1.997e+00  5.925e-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.195e+00  2.703e-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:  7.477e-01  2.187e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.96
Ra Dec: 174.764 40.562
Photon Index (Free Index): 2.00 +/- 0.59
Photon Flux (Free Index): 2.93e-08 +/- 2.89e-08
Energy Flux (Free Index): 2.04e-05 +/- 2.66e-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/987787/cmap_HighResolution_499046401_499305601_4FGL_J1139.0+4033_daily_bin1002.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.01e-02', comment='SUCCESS', photon_flux='3.81e-08', energy_flux2='2.04e-05', photon_flux_error='3.72e-08', dlogl='5.04e-01', energy_flux='9.02e-06', photon_flux2='2.93e-08', job_status='DONE', time_completed='2021-09-04 07:18:56.621453', photon_index_error2='0.59', photon_index2='2.00', ts='1.95', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', photon_flux_upper_limit='1.29e-07', energy_flux_error2='2.66e-05', EG='0.73', time_epoch_completed='1630765136.62', return_code='0', job_id='987787', GAL2='1.19', EG2='0.75', return_code2='0', energy_flux_error='8.83e-06', photon_flux_error2='2.89e-08', ts2='2.96', photon_index='2.72' WHERE bin_id='1002' AND source_name='4FGL J1139.0+4033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 07:18:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 987787: <4FGL_J1139.0+4033_daily_bin1002> in cluster <slac> Done

Job <4FGL_J1139.0+4033_daily_bin1002> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 07:06:55 2021
Job was executed on host(s) <bullet0273>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 07:06:56 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 07:06:56 2021
Terminated at Sat Sep  4 07:18:57 2021
Results reported at Sat Sep  4 07:18:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1139.0+4033_daily_bin1002 174.764 40.5617 499046401 499305601 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 :                                   696.37 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             340.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   720 sec.
    Turnaround time :                            722 sec.

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

