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


Performing analysis on: 4FGL_J1139.0+4033_daily_bin405
RA = 174.764, Dec = 40.5617
tmin = 344304001, tmax = 344563201
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='983766', job_status='RUN', time_executed='2021-09-04 06:57:00.075074', time_epoch_executed='1630763820.08' WHERE source_name='4FGL J1139.0+4033' and cadence='daily' and bin_id='405'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/983766

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/983766/ft1_4FGL_J1139.0+4033_daily_bin405.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/983766/ft2_4FGL_J1139.0+4033_daily_bin405.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/983766/ft1_4FGL_J1139.0+4033_daily_bin405.fits outfile=/scratch/kocevski/983766/ft1_filteredMKT_4FGL_J1139.0+4033_daily_bin405.fits ra=174.764 dec=40.5617 rad=12.0 tmin=344304001.0 tmax=344563201.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.45
user 3.20
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/983766/ft1_filtered_4FGL_J1139.0+4033_daily_bin405.fits" evtable="EVENTS" scfile=/scratch/kocevski/983766/ft2_4FGL_J1139.0+4033_daily_bin405.fits sctable="SC_DATA" outfile=/scratch/kocevski/983766/ltcube_344304001_344563201_4FGL_J1139.0+4033_daily_bin405.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/983766/ft2_4FGL_J1139.0+4033_daily_bin405.fits
.....................!
real 12.08
user 11.63
sys 0.42

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/983766/ft1_filtered_4FGL_J1139.0+4033_daily_bin405.fits evtable="EVENTS" scfile=/scratch/kocevski/983766/ft2_4FGL_J1139.0+4033_daily_bin405.fits sctable="SC_DATA" expcube=/scratch/kocevski/983766/ltcube_344304001_344563201_4FGL_J1139.0+4033_daily_bin405.fits outfile=/scratch/kocevski/983766/expmap_344304001_344563201_4FGL_J1139.0+4033_daily_bin405.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/983766/ltcube_344304001_344563201_4FGL_J1139.0+4033_daily_bin405.fits
.....................!
real 189.96
user 185.52
sys 4.01

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/983766/ft1_filtered_4FGL_J1139.0+4033_daily_bin405.fits scfile=/scratch/kocevski/983766/ft2_4FGL_J1139.0+4033_daily_bin405.fits outfile=/scratch/kocevski/983766/cmap_344304001_344563201_4FGL_J1139.0+4033_daily_bin405.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/983766/ft1_filtered_4FGL_J1139.0+4033_daily_bin405.fits scfile=/scratch/kocevski/983766/ft2_4FGL_J1139.0+4033_daily_bin405.fits outfile=/scratch/kocevski/983766/cmap_HighResolution_344304001_344563201_4FGL_J1139.0+4033_daily_bin405.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=174.764 yref=40.5617 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10193E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.2275       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .31553E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10618E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    17.073       1.0000         .10000E-03   10000.    
     8 'norm      '    .10159E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11971E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.0366       1.0000         .10000E-03   10000.    
    12 'norm      '    1.3069       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.1232       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    58.889       1.0000         .10000E-03   10000.    
    16 'norm      '    1.5045       1.0000         .10000E-03   10000.    
    17 'norm      '    .30879E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .42190       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1160       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .97733       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=   6827.703     FROM MIGRAD    STATUS=CONVERGED    615 CALLS     2950 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.495       -.18087E-05** at limit **
   2  Prefactor     .10000E-03    36.466       -.41351E-05** at limit **
   3  norm          1.2275        .29669        .74261E-08    .51419E-03
   4  Prefactor     .10002E-03    6.1159       -.21639E-06** at limit **
   5  Prefactor     .10000E-03    12.107        .20415E-07** at limit **
   6  Prefactor     .10000E-03    36.536       -.36231E-05** at limit **
   7  norm          17.073        13.464       -.47291E-06   -.54240E-03
   8  norm          .10000E-03    16.217        .17315E-05** at limit **
   9  Prefactor     .10000E-03    1.5398        .28241E-06** at limit **
  10  Prefactor     .10000E-03    57.181       -.30168E-04** at limit **
  11  Prefactor     .99697        8.2177       -.84649E-06   -.30795E-04
  12  norm          1.3104        2.7837       -.81861E-07   -.70147E-03
  13  Prefactor     5.1226        10.029       -.40188E-06   -.82863E-04
  14  Prefactor     .10000E-03    2.2595       -.23826E-07** at limit **
  15  Prefactor     58.872        52.650       -.29370E-05   -.98898E-05
  16  norm          1.5049        1.1159        .16733E-06   -.29478E-03
  17  norm          .10184E-03    4.3656       -.16653E-06** at limit **
  18  Prefactor     .10000E-03    48.127        .33644E-04** at limit **
  19  Prefactor     .10000E-03    1.1135       -.33976E-07** at limit **
  20  Prefactor     .10000E-03    29.221        .33901E-05** at limit **
  21  Prefactor     .34935        13.336        .19405E-05   -.53932E-03
  22  Prefactor     .10000E-03    36.196       -.46036E-05** at limit **
  23  Prefactor     .10000E-03    2.9535        .18008E-07** at limit **
  24  Normalizat    1.1160        .16710        .10612E-06   -.31859E-03
  25  Prefactor     .97742        .19380        .10972E-07   -.18186E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.22745
  Prefactor  = 0.000100022
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 17.0732
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.996969
  norm       = 1.31039
  Prefactor  = 5.1226
  Prefactor  = 0.0001
  Prefactor  = 58.8718
  norm       = 1.50488
  norm       = 0.000101837
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.349354
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.11602
  Prefactor  = 0.977417
 **********
 **   18 **HESSE 
 **********

 FCN=   6827.703     FROM HESSE     STATUS=OK           443 CALLS     3393 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    36.483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.2275        .29457        .21224E-04   -1.5486    
   4  Prefactor     .10002E-03    42.276        .38369E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    36.543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          17.073        13.229        .48466E-03   -1.4881    
   8  norm          .10000E-03    16.218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.4590        .18793E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    56.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .99697        43.288        .42468E-02   -1.5508    
  12  norm          1.3104        2.6156        .17375E-03   -1.5479    
  13  Prefactor     5.1226        10.130        .17762E-03   -1.5255    
  14  Prefactor     .10000E-03    2.2740        .12121E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     58.872        51.991        .52281E-04   -1.4172    
  16  norm          1.5049        1.1021        .64531E-04   -1.5463    
  17  norm          .10184E-03    5.7674        .66816E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    47.991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.1198        .84995E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    29.246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .34935        18.521        .87216E-01   -1.5590    
  22  Prefactor     .10000E-03    36.427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.9631        .13867E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1160        .19685        .23043E-03   -.89239    
  25  Prefactor     .97742        .22888        .29131E-03   -.93486    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.55271e-08
Minuit parameter uncertainties:
  1  8.06471e-07
  2  2.57299e-06
  3  0.294566
  4  0.0019337
  5  8.97787e-06
  6  6.8245e-07
  7  13.2308
  8  4.37864e-07
  9  4.40412e-05
  10  0.000173454
  11  13.1483
  12  2.61578
  13  10.1338
  14  2.95608e-07
  15  52.0316
  16  1.10211
  17  0.00651093
  18  0.000268766
  19  3.6166e-06
  20  8.1961e-06
  21  5.08832
  22  4.08445e-05
  23  7.22402e-07
  24  0.196979
  25  0.229103
Done.

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

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  5.887e+01  5.203e+01  1.000e-04  1.000e+04 ( 1.000e-13)
342        Index:  2.720e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
343        Scale:  6.779e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
693    Prefactor:  9.774e-01  2.291e-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.116e+00  1.970e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.20
Ra Dec: 174.764 40.562
Photon Index (Fixed Index): 2.72 +/- 0.00
Photon Flux (Fixed Index): 6.25e-08 +/- 5.51e-08
Energy Flux (Fixed Index): 1.48e-05 +/- 1.31e-05

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

Saving results to:
/scratch/kocevski/983766/likelihoodResults_344304001_344563201_4FGL_J1139.0+4033_daily_bin405.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) = 6827.3748058
delta logL = 0.328305908664

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6827.35375195
delta logL = 0.349359755268

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.766       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4930       1.0000          .0000       10.000    
     3 'Normalizat'    1.0710       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0163       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=   6827.354     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      284 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.726        85.569        .73436E-04    .19971E-03
   2  Index         3.4940        1.9762        .61419E-02    .11059E-03
   3  Normalizat    1.0710        .20914        .23442E-03    .26534E-03
   4  Prefactor     1.0163        .24243        .28640E-03   -.38429E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.7256
  Index      = 3.49397
  Normalizat = 1.07102
  Prefactor  = 1.01628
 **********
 **   18 **HESSE 
 **********

 FCN=   6827.354     FROM HESSE     STATUS=OK            25 CALLS      309 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.726        48.028        .29374E-05   -1.4617    
   2  Index         3.4940        1.1268        .24568E-03   -.30596    
   3  Normalizat    1.0710        .20300        .46884E-04   -.90688    
   4  Prefactor     1.0163        .23495        .57281E-04   -.92189    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98235e-09
Minuit parameter uncertainties:
  1  48.091
  2  1.13758
  3  0.203146
  4  0.235187
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/983766': 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) = 6827.35375145
delta logL = 0.349360251196

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  2.973e+01  4.809e+01  1.000e-04  1.000e+04 ( 1.000e-13)
342        Index:  3.494e+00  1.138e+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:  1.016e+00  2.352e-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.071e+00  2.031e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.02
Ra Dec: 174.764 40.562
Photon Index (Free Index): 3.49 +/- 1.14
Photon Flux (Free Index): 9.58e-08 +/- 6.77e-08
Energy Flux (Free Index): 1.60e-05 +/- 1.06e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/983766/cmap_HighResolution_344304001_344563201_4FGL_J1139.0+4033_daily_bin405.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.24e-02', comment='SUCCESS', photon_flux='6.25e-08', energy_flux2='1.60e-05', photon_flux_error='5.51e-08', dlogl='3.49e-01', energy_flux='1.48e-05', photon_flux2='9.58e-08', job_status='DONE', time_completed='2021-09-04 07:11:28.584440', photon_index_error2='1.14', photon_index2='3.49', ts='2.20', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.57e-07', energy_flux_error2='1.06e-05', EG='1.12', time_epoch_completed='1630764688.58', return_code='0', job_id='983766', GAL2='1.02', EG2='1.07', return_code2='0', energy_flux_error='1.31e-05', photon_flux_error2='6.77e-08', ts2='3.02', photon_index='2.72' WHERE bin_id='405' AND source_name='4FGL J1139.0+4033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 07:11:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0167>
Subject: Job 983766: <4FGL_J1139.0+4033_daily_bin405> in cluster <slac> Done

Job <4FGL_J1139.0+4033_daily_bin405> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Sat Sep  4 06:56:43 2021
Job was executed on host(s) <bullet0167>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 06:56:45 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 06:56:45 2021
Terminated at Sat Sep  4 07:11:29 2021
Results reported at Sat Sep  4 07:11:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1139.0+4033_daily_bin405 174.764 40.5617 344304001 344563201 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 :                                   854.28 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             296.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   883 sec.
    Turnaround time :                            886 sec.

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

