/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 5 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7408
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1139.0+4033_daily_bin450
RA = 174.764, Dec = 40.5617
tmin = 355968001, tmax = 356227201
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='985975', job_status='RUN', time_executed='2021-09-04 07:01:49.753980', time_epoch_executed='1630764109.75' WHERE source_name='4FGL J1139.0+4033' and cadence='daily' and bin_id='450'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/985975

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/985975/ft1_4FGL_J1139.0+4033_daily_bin450.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/985975/ft2_4FGL_J1139.0+4033_daily_bin450.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/985975/ft1_4FGL_J1139.0+4033_daily_bin450.fits outfile=/scratch/kocevski/985975/ft1_filteredMKT_4FGL_J1139.0+4033_daily_bin450.fits ra=174.764 dec=40.5617 rad=12.0 tmin=355968001.0 tmax=356227201.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.41
user 3.14
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/985975/ft1_filtered_4FGL_J1139.0+4033_daily_bin450.fits" evtable="EVENTS" scfile=/scratch/kocevski/985975/ft2_4FGL_J1139.0+4033_daily_bin450.fits sctable="SC_DATA" outfile=/scratch/kocevski/985975/ltcube_355968001_356227201_4FGL_J1139.0+4033_daily_bin450.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/985975/ft2_4FGL_J1139.0+4033_daily_bin450.fits
.....................!
real 12.17
user 11.81
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/985975/ft1_filtered_4FGL_J1139.0+4033_daily_bin450.fits evtable="EVENTS" scfile=/scratch/kocevski/985975/ft2_4FGL_J1139.0+4033_daily_bin450.fits sctable="SC_DATA" expcube=/scratch/kocevski/985975/ltcube_355968001_356227201_4FGL_J1139.0+4033_daily_bin450.fits outfile=/scratch/kocevski/985975/expmap_355968001_356227201_4FGL_J1139.0+4033_daily_bin450.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/985975/ltcube_355968001_356227201_4FGL_J1139.0+4033_daily_bin450.fits
.....................!
real 191.50
user 186.24
sys 4.83

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/985975/ft1_filtered_4FGL_J1139.0+4033_daily_bin450.fits scfile=/scratch/kocevski/985975/ft2_4FGL_J1139.0+4033_daily_bin450.fits outfile=/scratch/kocevski/985975/cmap_355968001_356227201_4FGL_J1139.0+4033_daily_bin450.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/985975/ft1_filtered_4FGL_J1139.0+4033_daily_bin450.fits scfile=/scratch/kocevski/985975/ft2_4FGL_J1139.0+4033_daily_bin450.fits outfile=/scratch/kocevski/985975/cmap_HighResolution_355968001_356227201_4FGL_J1139.0+4033_daily_bin450.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.55
user 0.41
sys 0.12

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    32.557       1.0000         .10000E-03   10000.    
     3 'norm      '    1.3985       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.3610       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    10.467       1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .46544E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    .10112E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.6669       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.7216       1.0000         .10000E-03   10000.    
    17 'norm      '    24.034       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.2562       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.6849       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.9682       1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.049       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.4058       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2315       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .77014       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=   6224.333     FROM MIGRAD    STATUS=CONVERGED    576 CALLS     2939 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.238       -.87274E-07** at limit **
   2  Prefactor     32.337        88.382       -.21703E-05   -.15498E-04
   3  norm          1.3985        .34336       -.23412E-07    .80978E-03
   4  Prefactor     .10000E-03    8.5138       -.70511E-07** at limit **
   5  Prefactor     2.3684        32.247        .12479E-05   -.26688E-04
   6  Prefactor     .10000E-03    33.074       -.18642E-07** at limit **
   7  norm          10.467        10.890       -.34226E-07    .51686E-04
   8  norm          .10000E-03    22.726        .12865E-06** at limit **
   9  Prefactor     .10000E-03    1.4522        .25517E-06** at limit **
  10  Prefactor     .10000E-03    35.818        .26199E-06** at limit **
  11  Prefactor     .10021E-03    17.344       -.46395E-05** at limit **
  12  norm          .10000E-03    1.0475        .37246E-06** at limit **
  13  Prefactor     1.6938        15.590        .81331E-05    .18922E-03
  14  Prefactor     .10000E-03    3.6321        .38048E-06** at limit **
  15  Prefactor     .10000E-03    40.512        .81388E-06** at limit **
  16  norm          1.7212        .98974       -.70215E-07    .93307E-04
  17  norm          24.034        13.662       -.11758E-06    .90932E-04
  18  Prefactor     9.2424        19.932       -.62533E-06    .44374E-04
  19  Prefactor     3.6841        4.4623        .13584E-06   -.10993E-03
  20  Prefactor     1.9321        161.89        .24303E-05   -.15015E-04
  21  Prefactor     12.046        20.258       -.20133E-06    .15784E-04
  22  Prefactor     .10000E-03    12.864        .18474E-06** at limit **
  23  Prefactor     4.4047        6.2857        .15399E-06   -.64089E-04
  24  Normalizat    1.2320        .18065        .23115E-05   -.10563E-03
  25  Prefactor     .76965        .21048       -.39026E-05    .40477E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 32.3375
  norm       = 1.39847
  Prefactor  = 0.0001
  Prefactor  = 2.36838
  Prefactor  = 0.0001
  norm       = 10.4671
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100209
  norm       = 0.000100001
  Prefactor  = 1.69376
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.72123
  norm       = 24.0335
  Prefactor  = 9.24241
  Prefactor  = 3.68406
  Prefactor  = 1.93207
  Prefactor  = 12.0459
  Prefactor  = 0.0001
  Prefactor  = 4.40471
  Normalizat = 1.23198
  Prefactor  = 0.769648
 **********
 **   18 **HESSE 
 **********

 FCN=   6224.333     FROM HESSE     STATUS=OK           431 CALLS     3370 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     32.337        88.665        .35113E-03   -1.4570    
   3  norm          1.3985        .34576        .20392E-04   -1.5471    
   4  Prefactor     .10000E-03    8.5586        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.3684        32.486        .26671E-03   -1.5400    
   6  Prefactor     .10000E-03    33.084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          10.467        10.874        .12385E-03   -1.5061    
   8  norm          .10000E-03    22.739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.5007        .18467E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    35.914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10021E-03    115.44        .56101E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.6142        .15426E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.6938        17.196        .32660E-03   -1.5448    
  14  Prefactor     .10000E-03    3.7414        .29270E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    40.807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.7212        .97892        .54481E-04   -1.5446    
  17  norm          24.034        13.614        .81708E-04   -1.4727    
  18  Prefactor     9.2424        19.969        .13173E-03   -1.5100    
  19  Prefactor     3.6841        4.4318        .15105E-03   -1.5324    
  20  Prefactor     1.9321        161.32        .29559E-03   -1.5430    
  21  Prefactor     12.046        20.135        .11540E-03   -1.5014    
  22  Prefactor     .10000E-03    12.874        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.4047        6.2760        .19187E-03   -1.5288    
  24  Normalizat    1.2320        .19765        .21564E-03   -.85620    
  25  Prefactor     .76965        .22648        .31829E-03   -1.0086    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.50922e-09
Minuit parameter uncertainties:
  1  1.16464e-05
  2  89.0299
  3  0.345757
  4  1.46528e-06
  5  17.5543
  6  7.06715e-05
  7  10.8756
  8  1.46898e-05
  9  2.33875e-05
  10  0.000168809
  11  0.00983683
  12  7.195e-05
  13  10.7973
  14  4.79942e-05
  15  0.000149698
  16  0.978932
  17  13.6158
  18  19.9833
  19  4.43215
  20  35.4067
  21  20.1466
  22  3.12781e-05
  23  6.27696
  24  0.197775
  25  0.226749
Done.

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

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  1.000e-04  1.497e-04  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:  7.696e-01  2.267e-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.232e+00  1.978e-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.96e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.48e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/985975/likelihoodResults_355968001_356227201_4FGL_J1139.0+4033_daily_bin450.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) = 6224.33268056
delta logL = -0.000116696226542

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6224.33256406
delta logL = -1.94836502487e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7919       1.0000          .0000       10.000    
     3 'Normalizat'    1.2320       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76965       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=   6224.333     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      250 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    88.095        .90712E-02** at limit **
   2  Index         2.7501        6.1475        .50000        .11189E-04
   3  Normalizat    1.2320        .15897        .48792E-01    .17060E-04
   4  Prefactor     .76964        .19080        .71923E-01    .30433E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.75014
  Normalizat = 1.23198
  Prefactor  = 0.769639
 **********
 **   18 **HESSE 
 **********

 FCN=   6224.333     FROM HESSE     STATUS=OK            33 CALLS      283 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    37.887        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7501        6.3617        .50000       -.46673    
   3  Normalizat    1.2320        .18572        .21570E-03   -.85620    
   4  Prefactor     .76964        .22257        .31829E-03   -1.0086    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72223e-10
Minuit parameter uncertainties:
  1  0.000498121
  2  4.46769
  3  0.185818
  4  0.222831
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/985975': 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) = 6224.33256394
delta logL = -7.50778781367e-08

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  1.000e-04  4.981e-04  1.000e-04  1.000e+04 ( 1.000e-13)
342        Index:  2.750e+00  4.468e+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:  7.696e-01  2.228e-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.232e+00  1.858e-01  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/985975/cmap_HighResolution_355968001_356227201_4FGL_J1139.0+4033_daily_bin450.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.48e-03', job_status='DONE', photon_flux_upper_limit='6.96e-08', time_completed='2021-09-04 07:15:29.845011', job_id='985975', GAL2='0.77', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1630764929.85', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='-7.51e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.72' WHERE bin_id='450' AND source_name='4FGL J1139.0+4033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 07:15:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 985975: <4FGL_J1139.0+4033_daily_bin450> in cluster <slac> Done

Job <4FGL_J1139.0+4033_daily_bin450> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep  4 07:01:34 2021
Job was executed on host(s) <bullet0106>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 07:01:36 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:36 2021
Terminated at Sat Sep  4 07:15:32 2021
Results reported at Sat Sep  4 07:15:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1139.0+4033_daily_bin450 174.764 40.5617 355968001 356227201 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 :                                   816.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             373.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   834 sec.
    Turnaround time :                            838 sec.

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

