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


Performing analysis on: 4FGL_J1139.0+4033_daily_bin1525
RA = 174.764, Dec = 40.5617
tmin = 634608001, tmax = 634867201
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='991285', job_status='RUN', time_executed='2021-09-04 07:20:02.353087', time_epoch_executed='1630765202.35' WHERE source_name='4FGL J1139.0+4033' and cadence='daily' and bin_id='1525'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/991285

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/991285/ft1_4FGL_J1139.0+4033_daily_bin1525.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/991285/ft2_4FGL_J1139.0+4033_daily_bin1525.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/991285/ft1_4FGL_J1139.0+4033_daily_bin1525.fits outfile=/scratch/kocevski/991285/ft1_filteredMKT_4FGL_J1139.0+4033_daily_bin1525.fits ra=174.764 dec=40.5617 rad=12.0 tmin=634608001.0 tmax=634867201.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.85
user 2.90
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/991285/ft1_filtered_4FGL_J1139.0+4033_daily_bin1525.fits" evtable="EVENTS" scfile=/scratch/kocevski/991285/ft2_4FGL_J1139.0+4033_daily_bin1525.fits sctable="SC_DATA" outfile=/scratch/kocevski/991285/ltcube_634608001_634867201_4FGL_J1139.0+4033_daily_bin1525.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/991285/ft2_4FGL_J1139.0+4033_daily_bin1525.fits
.....................!
real 12.89
user 12.31
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/991285/ft1_filtered_4FGL_J1139.0+4033_daily_bin1525.fits evtable="EVENTS" scfile=/scratch/kocevski/991285/ft2_4FGL_J1139.0+4033_daily_bin1525.fits sctable="SC_DATA" expcube=/scratch/kocevski/991285/ltcube_634608001_634867201_4FGL_J1139.0+4033_daily_bin1525.fits outfile=/scratch/kocevski/991285/expmap_634608001_634867201_4FGL_J1139.0+4033_daily_bin1525.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/991285/ltcube_634608001_634867201_4FGL_J1139.0+4033_daily_bin1525.fits
.....................!
real 190.42
user 185.60
sys 4.07

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/991285/ft1_filtered_4FGL_J1139.0+4033_daily_bin1525.fits scfile=/scratch/kocevski/991285/ft2_4FGL_J1139.0+4033_daily_bin1525.fits outfile=/scratch/kocevski/991285/cmap_634608001_634867201_4FGL_J1139.0+4033_daily_bin1525.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/991285/ft1_filtered_4FGL_J1139.0+4033_daily_bin1525.fits scfile=/scratch/kocevski/991285/ft2_4FGL_J1139.0+4033_daily_bin1525.fits outfile=/scratch/kocevski/991285/cmap_HighResolution_634608001_634867201_4FGL_J1139.0+4033_daily_bin1525.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.59
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/991285/ft1_filtered_4FGL_J1139.0+4033_daily_bin1525.fits', '/scratch/kocevski/991285/ft2_4FGL_J1139.0+4033_daily_bin1525.fits', expMap='/scratch/kocevski/991285/expmap_634608001_634867201_4FGL_J1139.0+4033_daily_bin1525.fits', expCube='/scratch/kocevski/991285/ltcube_634608001_634867201_4FGL_J1139.0+4033_daily_bin1525.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/991285/Model_4FGL_J1139.0+4033_daily_bin1525.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/991285/ft1_filtered_4FGL_J1139.0+4033_daily_bin1525.fits
Spacecraft file(s): /scratch/kocevski/991285/ft2_4FGL_J1139.0+4033_daily_bin1525.fits
Exposure map: /scratch/kocevski/991285/expmap_634608001_634867201_4FGL_J1139.0+4033_daily_bin1525.fits
Exposure cube: /scratch/kocevski/991285/ltcube_634608001_634867201_4FGL_J1139.0+4033_daily_bin1525.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/991285/Model_4FGL_J1139.0+4033_daily_bin1525.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 645.842937337

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
     2 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     7 'norm      '    30.319       1.0000         .10000E-03   10000.    
     8 'norm      '    .13427E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    483.88       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.827       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    7.2375       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    536.65       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.8645       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .23911       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0398       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=   645.4116     FROM MIGRAD    STATUS=CONVERGED    549 CALLS     3399 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor    10000.0        9734.3        .19238E-02** at limit **
   2  Prefactor    10000.0        8947.9        .18703E-02** at limit **
   3  norm          .10000E-03    7.6633       -.13206E-06** at limit **
   4  Prefactor     .10000E-03    270.39       -.37154E-05** at limit **
   5  Prefactor     .10000E-03    295.63       -.70567E-04** at limit **
   6  Prefactor     10000.        8053.2        .14607E-02** at limit **
   7  norm          30.266        790.89       -.89045E-04    .10492E-04
   8  norm          .10000E-03    1237.9       -.12694E-02** at limit **
   9  Prefactor     .10001E-03    36.175       -.87929E-05** at limit **
  10  Prefactor     483.95        494.58        .36457E-04    .16537E-04
  11  Prefactor     .10000E-03    55.790       -.16579E-04** at limit **
  12  norm          .10000E-03    11.758        .42307E-07** at limit **
  13  Prefactor     .10000E-03    36.601        .42080E-05** at limit **
  14  Prefactor     10.761        88.654       -.74439E-04    .14743E-04
  15  Prefactor     .10000E-03    205.96        .14631E-03** at limit **
  16  norm          7.2352        7.6341        .62801E-06   -.15622E-05
  17  norm          .10000E-03    22.129       -.73278E-07** at limit **
  18  Prefactor     536.67        253.71        .10061E-04    .60506E-04
  19  Prefactor     .10000E-03    5.7758        .10049E-07** at limit **
  20  Prefactor     .10000E-03    252.26        .42864E-04** at limit **
  21  Prefactor     .10000E-03    51.570        .24656E-04** at limit **
  22  Prefactor     .10000E-03    88.909       -.32106E-04** at limit **
  23  Prefactor     9.8677        29.897       -.61383E-05    .29208E-04
  24  Normalizat    .23936        .64893       -.25408E-05    .41521E-04
  25  Prefactor     1.0392        .69145        .88471E-05   -.18387E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10000
  norm       = 30.2664
  norm       = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 483.953
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.7605
  Prefactor  = 0.0001
  norm       = 7.23522
  norm       = 0.0001
  Prefactor  = 536.671
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.86766
  Normalizat = 0.239359
  Prefactor  = 1.03925
 **********
 **   18 **HESSE 
 **********

 FCN=   645.4116     FROM HESSE     STATUS=OK           409 CALLS     3808 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor    10000.0        9734.1        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor    10000.0        8948.1        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    7.6634        .68714E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    270.39        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    295.63        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10000.        8053.3        .18880E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          30.266        786.76        .72765E-04   -1.4607    
   8  norm          .10000E-03    1238.0        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    36.180        .14920E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     483.95        494.13        .93204E-04   -1.1272    
  11  Prefactor     .10000E-03    55.789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    11.759        .85106E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    36.603        .15024E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.761        88.365        .12176E-03   -1.5052    
  15  Prefactor     .10000E-03    205.99        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          7.2352        7.5250        .65424E-04   -1.5170    
  17  norm          .10000E-03    22.130        .11680E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     536.67        248.78        .88749E-04   -1.1032    
  19  Prefactor     .10000E-03    5.7771        .59649E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    252.28        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    51.577        .17837E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    88.924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     9.8677        29.150        .12759E-03   -1.5080    
  24  Normalizat    .23936        .60620        .44946E-03   -1.2666    
  25  Prefactor     1.0392        .68308        .25693E-03   -.91432    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.27243e-10
Minuit parameter uncertainties:
  1  0.0292276
  2  0.00472384
  3  5.91461e-06
  4  0.000107625
  5  7.48985e-05
  6  9.58366e-05
  7  313.325
  8  5.49323e-05
  9  0.000974676
  10  498.601
  11  0.000185797
  12  8.43432e-05
  13  0.000108142
  14  61.7961
  15  0.000214983
  16  7.52603
  17  4.68877e-06
  18  249.284
  19  4.30856e-06
  20  3.86827e-05
  21  4.14208e-05
  22  9.77044e-05
  23  29.192
  24  0.624144
  25  0.688919
Done.

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

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  1.000e-04  2.150e-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.039e+00  6.889e-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:  2.394e-01  6.241e-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: 9.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.13e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/991285/likelihoodResults_634608001_634867201_4FGL_J1139.0+4033_daily_bin1525.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) = 645.4116312
delta logL = -2.28530766435e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 645.411608437
delta logL = -8.96463916433e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13434E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6909       1.0000          .0000       10.000    
     3 'Normalizat'    .23931       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0393       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=   645.4116     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      239 TOTAL
                     EDM=   .64E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9063.5        .90712E-02** at limit **
   2  Index         2.7004        5.2419        .50000       -.43897E-06
   3  Normalizat    .23935        .30076        .10153        .71440E-05
   4  Prefactor     1.0393        .35569        .58110E-01   -.21947E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.7004
  Normalizat = 0.239347
  Prefactor  = 1.03926
 **********
 **   18 **HESSE 
 **********

 FCN=   645.4116     FROM HESSE     STATUS=OK            33 CALLS      272 TOTAL
                     EDM=   .26E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    203.60        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7004        6.3465        .50000       -.47791    
   3  Normalizat    .23935        .51992        .44948E-03   -1.2666    
   4  Prefactor     1.0393        .62212        .25693E-03   -.91432    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.62152e-13
Minuit parameter uncertainties:
  1  4.06185e-05
  2  4.6106
  3  0.531001
  4  0.626509
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/991285': 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) = 645.411608349
delta logL = -1.78033587872e-09

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  1.000e-04  4.062e-05  1.000e-04  1.000e+04 ( 1.000e-13)
342        Index:  2.700e+00  4.611e+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.039e+00  6.265e-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:  2.393e-01  5.310e-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/991285/cmap_HighResolution_634608001_634867201_4FGL_J1139.0+4033_daily_bin1525.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.13e-02', job_status='DONE', photon_flux_upper_limit='9.04e-07', time_completed='2021-09-04 07:29:09.279822', job_id='991285', GAL2='1.04', fit_tolerance='1e-08', EG2='0.24', EG='0.24', time_epoch_completed='1630765749.28', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='-1.78e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.72' WHERE bin_id='1525' AND source_name='4FGL J1139.0+4033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 07:29:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 991285: <4FGL_J1139.0+4033_daily_bin1525> in cluster <slac> Done

Job <4FGL_J1139.0+4033_daily_bin1525> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sat Sep  4 07:17:03 2021
Job was executed on host(s) <bullet0072>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 07:17:04 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:17:04 2021
Terminated at Sat Sep  4 07:29:10 2021
Results reported at Sat Sep  4 07:29:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1139.0+4033_daily_bin1525 174.764 40.5617 634608001 634867201 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 :                                   380.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             213.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   725 sec.
    Turnaround time :                            727 sec.

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

