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


Performing analysis on: 4FGL_J1139.0+4033_daily_bin112
RA = 174.764, Dec = 40.5617
tmin = 268358401, tmax = 268617601
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='981431', job_status='RUN', time_executed='2021-09-04 06:51:37.316271', time_epoch_executed='1630763497.32' WHERE source_name='4FGL J1139.0+4033' and cadence='daily' and bin_id='112'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/981431

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/981431/ft1_4FGL_J1139.0+4033_daily_bin112.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/981431/ft2_4FGL_J1139.0+4033_daily_bin112.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/981431/ft1_4FGL_J1139.0+4033_daily_bin112.fits outfile=/scratch/kocevski/981431/ft1_filteredMKT_4FGL_J1139.0+4033_daily_bin112.fits ra=174.764 dec=40.5617 rad=12.0 tmin=268358401.0 tmax=268617601.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 1.43
user 1.25
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/981431/ft2_4FGL_J1139.0+4033_daily_bin112.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/981431/ft1_filteredMKT_4FGL_J1139.0+4033_daily_bin112.fits evtable="EVENTS" outfile="/scratch/kocevski/981431/ft1_filtered_4FGL_J1139.0+4033_daily_bin112.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.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/981431/ft1_filtered_4FGL_J1139.0+4033_daily_bin112.fits evtable="EVENTS" scfile=/scratch/kocevski/981431/ft2_4FGL_J1139.0+4033_daily_bin112.fits sctable="SC_DATA" expcube=/scratch/kocevski/981431/ltcube_268358401_268617601_4FGL_J1139.0+4033_daily_bin112.fits outfile=/scratch/kocevski/981431/expmap_268358401_268617601_4FGL_J1139.0+4033_daily_bin112.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/981431/ltcube_268358401_268617601_4FGL_J1139.0+4033_daily_bin112.fits
.....................!
real 190.70
user 185.23
sys 4.82

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/981431/ft1_filtered_4FGL_J1139.0+4033_daily_bin112.fits scfile=/scratch/kocevski/981431/ft2_4FGL_J1139.0+4033_daily_bin112.fits outfile=/scratch/kocevski/981431/cmap_268358401_268617601_4FGL_J1139.0+4033_daily_bin112.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.62
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/981431/ft1_filtered_4FGL_J1139.0+4033_daily_bin112.fits scfile=/scratch/kocevski/981431/ft2_4FGL_J1139.0+4033_daily_bin112.fits outfile=/scratch/kocevski/981431/cmap_HighResolution_268358401_268617601_4FGL_J1139.0+4033_daily_bin112.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.61
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    93.275       1.0000         .10000E-03   10000.    
     3 'norm      '    2.4209       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .16393       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    14.612       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10192E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.815       1.0000         .10000E-03   10000.    
    12 'norm      '    2.6266       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.3277       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    48.578       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .53527E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.9883       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .40683       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .96158       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1928       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=   5884.669     FROM MIGRAD    STATUS=CONVERGED    599 CALLS     2931 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    38.308       -.14520E-06** at limit **
   2  Prefactor     93.255        84.823        .22483E-06   -.13087E-03
   3  norm          2.4215        .47827        .37790E-07    .56703E-02
   4  Prefactor     .10006E-03    17.027       -.29180E-05** at limit **
   5  Prefactor     .10000E-03    18.386       -.89701E-07** at limit **
   6  Prefactor     .10000E-03    32.540       -.72726E-07** at limit **
   7  norm          14.619        13.463        .41314E-06    .32143E-03
   8  norm          .10000E-03    15.508       -.42768E-08** at limit **
   9  Prefactor     .10000E-03    1.2798        .36494E-06** at limit **
  10  Prefactor     .10000E-03    38.491        .68906E-07** at limit **
  11  Prefactor     16.804        21.273       -.45594E-06    .20351E-03
  12  norm          2.6261        2.0853       -.39761E-07    .12883E-04
  13  Prefactor     .10001E-03    7.3910        .23351E-05** at limit **
  14  Prefactor     .10000E-03    2.4273        .10936E-05** at limit **
  15  Prefactor     .10000E-03    18.161       -.39052E-07** at limit **
  16  norm          1.3277        .99607        .15191E-08    .38343E-03
  17  norm          .10000E-03    2.6833       -.12866E-06** at limit **
  18  Prefactor     48.560        30.862       -.33073E-06    .50342E-04
  19  Prefactor     .10010E-03    8.3887        .11669E-04** at limit **
  20  Prefactor     6.9688        56.790        .64887E-06   -.20250E-04
  21  Prefactor     .42741        194.76       -.58425E-04    .16348E-03
  22  Prefactor     .10000E-03    8.5812        .22018E-06** at limit **
  23  Prefactor     .10000E-03    2.5860        .70124E-07** at limit **
  24  Normalizat    .96158        .18047       -.40526E-06   -.34624E-03
  25  Prefactor     1.1930        .21450        .14692E-05   -.14455E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 93.2548
  norm       = 2.42153
  Prefactor  = 0.000100062
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.6188
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.8036
  norm       = 2.62613
  Prefactor  = 0.000100009
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 1.32766
  norm       = 0.0001
  Prefactor  = 48.5596
  Prefactor  = 0.000100097
  Prefactor  = 6.9688
  Prefactor  = 0.427407
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.96158
  Prefactor  = 1.19301
 **********
 **   18 **HESSE 
 **********

 FCN=   5884.669     FROM HESSE     STATUS=OK           437 CALLS     3368 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    38.569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     93.255        85.301        .20806E-03   -1.3774    
   3  norm          2.4215        .48367        .21831E-04   -1.5397    
   4  Prefactor     .10006E-03    23.148        .80123E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    18.446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    32.549        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          14.619        13.505        .10478E-03   -1.4943    
   8  norm          .10000E-03    15.508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.7192        .16691E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    38.607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     16.804        21.346        .97671E-04   -1.4888    
  12  norm          2.6261        2.0662        .94510E-04   -1.5384    
  13  Prefactor     .10001E-03    7.6188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.4887        .11776E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    18.190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.3277        .98957        .60409E-04   -1.5478    
  17  norm          .10000E-03    2.6841        .12274E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     48.560        30.902        .57533E-04   -1.4313    
  19  Prefactor     .10010E-03    26.319        .19225E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.9688        56.904        .15176E-03   -1.5180    
  21  Prefactor     .42741        26.082        .93132E-01   -1.5577    
  22  Prefactor     .10000E-03    8.5861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.5924        .12047E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .96158        .21164        .25411E-03   -.94329    
  25  Prefactor     1.1930        .25092        .28250E-03   -.86547    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.16145e-09
Minuit parameter uncertainties:
  1  0.000180152
  2  85.4132
  3  0.483666
  4  0.00239199
  5  3.86777e-05
  6  0.000110698
  7  13.5074
  8  1.0791e-05
  9  3.86128e-05
  10  6.35837e-05
  11  21.3555
  12  2.06623
  13  0.000536585
  14  0.000144398
  15  0.000148808
  16  0.989581
  17  1.71977e-05
  18  30.9123
  19  0.00320188
  20  39.8787
  21  6.67991
  22  5.81218e-05
  23  9.62022e-06
  24  0.211821
  25  0.25117
Done.

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

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  1.000e-04  1.488e-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:  1.193e+00  2.512e-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:  9.616e-01  2.118e-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: 7.29e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.74e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/981431/likelihoodResults_268358401_268617601_4FGL_J1139.0+4033_daily_bin112.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) = 5884.66900563
delta logL = -0.000261813599536

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5884.66874688
delta logL = -3.06101173919e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.3726       1.0000          .0000       10.000    
     3 'Normalizat'    .96158       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1930       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=   5884.669     FROM MIGRAD    STATUS=CONVERGED    112 CALLS      296 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    74.727        .18142E-01** at limit **
   2  Index         2.2028        5.9040        .50000        .13147E-06
   3  Normalizat    .96158        .79594E-02    .25411E-03   -.12796E-03
   4  Prefactor     1.1930        .97764E-02    .28250E-03   -.91915E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100021
  Index      = 2.20285
  Normalizat = 0.961582
  Prefactor  = 1.193
 **********
 **   18 **HESSE 
 **********

 FCN=   5884.669     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      325 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    400.31        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2028        5.5033        .50000       -.59370    
   3  Normalizat    .96158        .18772E-01    .10164E-04   -.94329    
   4  Prefactor     1.1930        .23057E-01    .11300E-04   -.86547    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.2176e-09
Minuit parameter uncertainties:
  1  0.0059033
  2  1094.8
  3  0.0187718
  4  0.0230571
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/981431': 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) = 5884.66874319
delta logL = 6.23774212727e-07

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  1.000e-04  5.903e-03  1.000e-04  1.000e+04 ( 1.000e-13)
342        Index:  2.203e+00  1.095e+03  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.193e+00  2.306e-02  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:  9.616e-01  1.877e-02  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/981431/cmap_HighResolution_268358401_268617601_4FGL_J1139.0+4033_daily_bin112.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.74e-03', job_status='DONE', photon_flux_upper_limit='7.29e-08', time_completed='2021-09-04 07:04:46.570945', job_id='981431', GAL2='1.19', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1630764286.57', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.19', dlogl='6.24e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.72' WHERE bin_id='112' AND source_name='4FGL J1139.0+4033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 07:04:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 981431: <4FGL_J1139.0+4033_daily_bin112> in cluster <slac> Done

Job <4FGL_J1139.0+4033_daily_bin112> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 06:51:20 2021
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 06:51:22 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:51:22 2021
Terminated at Sat Sep  4 07:04:46 2021
Results reported at Sat Sep  4 07:04:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1139.0+4033_daily_bin112 174.764 40.5617 268358401 268617601 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 :                                   785.23 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             333.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   804 sec.
    Turnaround time :                            806 sec.

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

