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


Performing analysis on: 4FGL_J1139.0+4033_daily_bin492
RA = 174.764, Dec = 40.5617
tmin = 366854401, tmax = 367113601
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='986039', job_status='RUN', time_executed='2021-09-04 07:01:57.800670', time_epoch_executed='1630764117.8' WHERE source_name='4FGL J1139.0+4033' and cadence='daily' and bin_id='492'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/986039

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/986039/ft1_4FGL_J1139.0+4033_daily_bin492.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/986039/ft2_4FGL_J1139.0+4033_daily_bin492.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/986039/ft1_4FGL_J1139.0+4033_daily_bin492.fits outfile=/scratch/kocevski/986039/ft1_filteredMKT_4FGL_J1139.0+4033_daily_bin492.fits ra=174.764 dec=40.5617 rad=12.0 tmin=366854401.0 tmax=367113601.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 5.37
user 5.06
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/986039/ft1_filtered_4FGL_J1139.0+4033_daily_bin492.fits" evtable="EVENTS" scfile=/scratch/kocevski/986039/ft2_4FGL_J1139.0+4033_daily_bin492.fits sctable="SC_DATA" outfile=/scratch/kocevski/986039/ltcube_366854401_367113601_4FGL_J1139.0+4033_daily_bin492.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/986039/ft2_4FGL_J1139.0+4033_daily_bin492.fits
.....................!
real 11.64
user 11.30
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/986039/ft1_filtered_4FGL_J1139.0+4033_daily_bin492.fits evtable="EVENTS" scfile=/scratch/kocevski/986039/ft2_4FGL_J1139.0+4033_daily_bin492.fits sctable="SC_DATA" expcube=/scratch/kocevski/986039/ltcube_366854401_367113601_4FGL_J1139.0+4033_daily_bin492.fits outfile=/scratch/kocevski/986039/expmap_366854401_367113601_4FGL_J1139.0+4033_daily_bin492.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/986039/ltcube_366854401_367113601_4FGL_J1139.0+4033_daily_bin492.fits
.....................!
real 191.90
user 187.04
sys 3.89

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/986039/ft1_filtered_4FGL_J1139.0+4033_daily_bin492.fits scfile=/scratch/kocevski/986039/ft2_4FGL_J1139.0+4033_daily_bin492.fits outfile=/scratch/kocevski/986039/cmap_366854401_367113601_4FGL_J1139.0+4033_daily_bin492.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.55
user 0.39
sys 0.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.530       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.5689       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13316E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .68676E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.0715       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .68756       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.0087       1.0000         .10000E-03   10000.    
    15 'Prefactor '    25.518       1.0000         .10000E-03   10000.    
    16 'norm      '    2.3464       1.0000         .10000E-03   10000.    
    17 'norm      '    2.2585       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10507E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .42278       1.0000         .10000E-03   10000.    
    20 'Prefactor '    23.563       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    42.997       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2370       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .66332       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=   6391.406     FROM MIGRAD    STATUS=CONVERGED    610 CALLS     2983 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.536        30.819        .60156E-06    .32458E-04
   2  Prefactor     .10000E-03    44.641       -.10824E-05** at limit **
   3  norm          6.5689        .68231        .93155E-08   -.16648E-03
   4  Prefactor     .10000E-03    41.205        .40460E-05** at limit **
   5  Prefactor     .10000E-03    9.0190        .31558E-07** at limit **
   6  Prefactor     .10000E-03    169.17       -.45792E-05** at limit **
   7  norm          .10000E-03    12.102       -.30546E-07** at limit **
   8  norm          .10000E-03    26.358        .34653E-06** at limit **
   9  Prefactor     .48693E-01    1.6038       -.44990E-06    .30186E-03
  10  Prefactor     .10002E-03    76.641       -.10441E-04** at limit **
  11  Prefactor     .10000E-03    29.533       -.18425E-05** at limit **
  12  norm          1.0629        2.8111        .47957E-06   -.41274E-04
  13  Prefactor     .69198        9.5591        .16578E-06   -.13504E-03
  14  Prefactor     6.9907        5.5027        .11177E-05   -.14100E-02
  15  Prefactor     25.515        62.712       -.19672E-05   -.22388E-04
  16  norm          2.3467        1.5336        .49510E-08    .37099E-04
  17  norm          2.2598        8.1432       -.13311E-06   -.14556E-03
  18  Prefactor     .10000E-03    30.914        .76618E-06** at limit **
  19  Prefactor     .42431        2.1064        .65336E-06   -.56484E-03
  20  Prefactor     23.568        45.040        .23369E-05    .78690E-04
  21  Prefactor     .10000E-03    8.6304       -.50637E-07** at limit **
  22  Prefactor     43.011        36.212        .25971E-05    .24110E-03
  23  Prefactor     .10000E-03    5.3102        .25498E-07** at limit **
  24  Normalizat    1.2370        .18374       -.47730E-06    .96004E-04
  25  Prefactor     .66302        .20377       -.27704E-06    .36584E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.5357
  Prefactor  = 0.0001
  norm       = 6.56887
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0486933
  Prefactor  = 0.00010002
  Prefactor  = 0.000100001
  norm       = 1.06295
  Prefactor  = 0.691979
  Prefactor  = 6.99074
  Prefactor  = 25.5152
  norm       = 2.34669
  norm       = 2.25984
  Prefactor  = 0.0001
  Prefactor  = 0.424306
  Prefactor  = 23.568
  Prefactor  = 0.0001
  Prefactor  = 43.0107
  Prefactor  = 0.0001
  Normalizat = 1.23695
  Prefactor  = 0.663022
 **********
 **   18 **HESSE 
 **********

 FCN=   6391.406     FROM HESSE     STATUS=OK           425 CALLS     3408 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.536        30.824        .86322E-04   -1.4780    
   2  Prefactor     .10000E-03    44.704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.5689        .68260        .20399E-04   -1.5195    
   4  Prefactor     .10000E-03    42.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.0266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    170.65        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    12.155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    26.370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .48693E-01    56.584        .17925E-02   -1.5664    
  10  Prefactor     .10002E-03    81.142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    29.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.0629        2.7447        .19032E-03   -1.5502    
  13  Prefactor     .69198        45.208        .46987E-02   -1.5542    
  14  Prefactor     6.9907        6.7298        .75767E-03   -1.5179    
  15  Prefactor     25.515        62.276        .79301E-04   -1.4697    
  16  norm          2.3467        1.5344        .64461E-04   -1.5402    
  17  norm          2.2598        8.1748        .27336E-03   -1.5407    
  18  Prefactor     .10000E-03    31.015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .42431        2.1845        .23083E-03   -1.5578    
  20  Prefactor     23.568        45.356        .82519E-04   -1.4737    
  21  Prefactor     .10000E-03    8.6524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     43.011        36.845        .61137E-04   -1.4395    
  23  Prefactor     .10000E-03    5.3448        .17989E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2370        .21746        .24182E-03   -.85468    
  25  Prefactor     .66302        .24116        .36182E-03   -1.0499    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.93369e-09
Minuit parameter uncertainties:
  1  30.8466
  2  0.000206023
  3  0.682598
  4  0.000739416
  5  1.97069e-06
  6  0.00166605
  7  1.61903e-06
  8  5.42988e-05
  9  3.31954
  10  0.00256845
  11  0.000268095
  12  2.74501
  13  11.1942
  14  6.73053
  15  62.4348
  16  1.53443
  17  8.17888
  18  3.64595e-05
  19  1.92539
  20  45.4227
  21  2.04059e-06
  22  36.8644
  23  7.28594e-06
  24  0.217621
  25  0.24154
Done.

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

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  2.552e+01  6.243e+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:  6.630e-01  2.415e-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:  1.237e+00  2.176e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/986039/likelihoodResults_366854401_367113601_4FGL_J1139.0+4033_daily_bin492.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) = 6391.1079262
delta logL = 0.298047183127

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6391.10641357
delta logL = 0.299559814707

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4526       1.0000         .10000E-03   10000.    
     2 'Index     '    4.7593       1.0000          .0000       10.000    
     3 'Normalizat'    1.1982       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69776       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=   6391.106     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      324 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4799        69.965        .65297E-02    .65580E-03
   2  Index         4.7533        4.0726        .15458        .12685E-03
   3  Normalizat    1.1980        .48466E-01    .55396E-01    .18194E-05
   4  Prefactor     .69793        .54868E-01    .79843E-01    .25176E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.47994
  Index      = 4.75329
  Normalizat = 1.19797
  Prefactor  = 0.69793
 **********
 **   18 **HESSE 
 **********

 FCN=   6391.106     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      357 TOTAL
                     EDM=   .94E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4799        163.16        .13869E-03   -1.5393    
   2  Index         4.7533        7.1940        .78931E-02   -.49363E-01
   3  Normalizat    1.1980        .17120        .24495E-03   -.86666    
   4  Prefactor     .69793        .19131        .35356E-03   -1.0361    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.43885e-07
Minuit parameter uncertainties:
  1  40.3454
  2  9.51888
  3  0.171276
  4  0.191491
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/986039': 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) = 6391.10641146
delta logL = 0.299561927435

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  2.480e+00  4.035e+01  1.000e-04  1.000e+04 ( 1.000e-13)
342        Index:  4.753e+00  9.519e+00  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:  6.979e-01  1.915e-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:  1.198e+00  1.713e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.28
Ra Dec: 174.764 40.562

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/986039/cmap_HighResolution_366854401_367113601_4FGL_J1139.0+4033_daily_bin492.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.15e-02', job_status='DONE', photon_flux_upper_limit='1.45e-07', time_completed='2021-09-04 07:16:09.063888', job_id='986039', GAL2='0.70', fit_tolerance='1e-08', EG2='1.20', EG='1.24', time_epoch_completed='1630764969.06', return_code2='102', ts='0.28', comment='SUCCESS', return_code='0', GAL='0.66', dlogl='3.00e-01', ts2='0.95', photon_index_error='0.00', photon_index='2.72' WHERE bin_id='492' AND source_name='4FGL J1139.0+4033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 07:16:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 986039: <4FGL_J1139.0+4033_daily_bin492> in cluster <slac> Done

Job <4FGL_J1139.0+4033_daily_bin492> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep  4 07:01:40 2021
Job was executed on host(s) <bullet0090>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 07:01:42 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:01:42 2021
Terminated at Sat Sep  4 07:16:11 2021
Results reported at Sat Sep  4 07:16:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1139.0+4033_daily_bin492 174.764 40.5617 366854401 367113601 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 :                                   845.15 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             313.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   867 sec.
    Turnaround time :                            871 sec.

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

