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


Performing analysis on: 4FGL_J1139.0+4033_daily_bin25
RA = 174.764, Dec = 40.5617
tmin = 245808001, tmax = 246067201
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='978721', job_status='RUN', time_executed='2021-09-04 06:41:26.378947', time_epoch_executed='1630762886.38' WHERE source_name='4FGL J1139.0+4033' and cadence='daily' and bin_id='25'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/978721

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/978721/ft1_4FGL_J1139.0+4033_daily_bin25.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/978721/ft2_4FGL_J1139.0+4033_daily_bin25.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/978721/ft1_4FGL_J1139.0+4033_daily_bin25.fits outfile=/scratch/kocevski/978721/ft1_filteredMKT_4FGL_J1139.0+4033_daily_bin25.fits ra=174.764 dec=40.5617 rad=12.0 tmin=245808001.0 tmax=246067201.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.46
user 1.26
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/978721/ft1_filtered_4FGL_J1139.0+4033_daily_bin25.fits evtable="EVENTS" scfile=/scratch/kocevski/978721/ft2_4FGL_J1139.0+4033_daily_bin25.fits sctable="SC_DATA" expcube=/scratch/kocevski/978721/ltcube_245808001_246067201_4FGL_J1139.0+4033_daily_bin25.fits outfile=/scratch/kocevski/978721/expmap_245808001_246067201_4FGL_J1139.0+4033_daily_bin25.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/978721/ltcube_245808001_246067201_4FGL_J1139.0+4033_daily_bin25.fits
.....................!
real 189.78
user 184.86
sys 4.57

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/978721/ft1_filtered_4FGL_J1139.0+4033_daily_bin25.fits scfile=/scratch/kocevski/978721/ft2_4FGL_J1139.0+4033_daily_bin25.fits outfile=/scratch/kocevski/978721/cmap_245808001_246067201_4FGL_J1139.0+4033_daily_bin25.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.58
user 0.37
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .75563       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.7896       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .34422       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.6664       1.0000         .10000E-03   10000.    
     7 'norm      '    7.0591       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    26.534       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .69510E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.3856       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.153       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .22178E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    11.522       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.6413       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.5782       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .81396       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2693       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=   6098.856     FROM MIGRAD    STATUS=CONVERGED   1025 CALLS     3803 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.456        .18142E-02** at limit **
   2  Prefactor     .10000E-03    24.669        .18142E-02** at limit **
   3  norm          .75556        .29648        .22193E-04   -.10594E-02
   4  Prefactor     7.7872        11.907        .14367E-03   -.13848E-03
   5  Prefactor     .35701        180.05        .47144E-02   -.15934E-03
   6  Prefactor     9.6723        51.443        .12889E-03    .29372E-04
   7  norm          7.0591        9.6284        .75493E-03   -.30156E-03
   8  norm          .10000E-03    15.833        .18142E-02** at limit **
   9  Prefactor     .10000E-03    3.0360        .17642E-02** at limit **
  10  Prefactor     26.543        35.340        .77770E-04    .25682E-03
  11  Prefactor     .10008E-03    141.24        .54628E-02** at limit **
  12  norm          3.3856        2.8030        .10669E-03    .11061E-03
  13  Prefactor     10.145        10.779        .12575E-03    .13624E-03
  14  Prefactor     .10002E-03    16.456        .22917E-02** at limit **
  15  Prefactor     .10000E-03    33.583        .18142E-02** at limit **
  16  norm          .10000E-03    .83867        .10766E-02** at limit **
  17  norm          11.521        10.308        .11802E-03   -.14449E-04
  18  Prefactor     2.6357        25.358        .25087E-03    .59818E-05
  19  Prefactor     .10000E-03    1.5059        .92594E-03** at limit **
  20  Prefactor     .10000E-03    43.987        .18142E-02** at limit **
  21  Prefactor     9.5781        11.307        .12949E-03   -.87799E-06
  22  Prefactor     .10000E-03    15.773        .18142E-02** at limit **
  23  Prefactor     .10000E-03    6.3983        .18142E-02** at limit **
  24  Normalizat    .81418        .19138        .24950E-03    .95233E-04
  25  Prefactor     1.2689        .23928        .25586E-03    .15615E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.755555
  Prefactor  = 7.78722
  Prefactor  = 0.35701
  Prefactor  = 9.67227
  norm       = 7.05912
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.5427
  Prefactor  = 0.000100079
  norm       = 3.38561
  Prefactor  = 10.1445
  Prefactor  = 0.000100022
  Prefactor  = 0.000100002
  norm       = 0.0001
  norm       = 11.5213
  Prefactor  = 2.63568
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.5781
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.814184
  Prefactor  = 1.26892
 **********
 **   18 **HESSE 
 **********

 FCN=   6098.856     FROM HESSE     STATUS=OK           403 CALLS     4206 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.456        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    24.669        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .75556        .28392        .88772E-06   -1.5534    
   4  Prefactor     7.7872        11.664        .57469E-05   -1.5150    
   5  Prefactor     .35701        163.50        .18857E-03   -1.5588    
   6  Prefactor     9.6723        51.451        .51557E-05   -1.5086    
   7  norm          7.0591        9.6263        .30197E-04   -1.5177    
   8  norm          .10000E-03    15.833        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.0415        .35284E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     26.543        35.279        .15554E-04   -1.4677    
  11  Prefactor     .10008E-03    145.00        .21851E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.3856        2.8027        .42674E-05   -1.5340    
  13  Prefactor     10.145        10.739        .50301E-05   -1.5071    
  14  Prefactor     .10002E-03    16.664        .45834E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    33.589        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .84012        .21532E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          11.521        10.308        .47208E-05   -1.5029    
  18  Prefactor     2.6357        25.351        .10035E-04   -1.5383    
  19  Prefactor     .10000E-03    1.5062        .18519E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    43.992        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     9.5781        11.307        .51794E-05   -1.5089    
  22  Prefactor     .10000E-03    15.774        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    6.4011        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .81418        .19149        .99800E-05   -.99545    
  25  Prefactor     1.2689        .23938        .51172E-04   -.84236    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.68968e-09
Minuit parameter uncertainties:
  1  5.46958e-05
  2  0.000462644
  3  0.283923
  4  11.6677
  5  15.3202
  6  44.6757
  7  9.62837
  8  8.32279e-05
  9  1.93867e-05
  10  35.3063
  11  0.00676795
  12  2.80278
  13  10.7409
  14  0.0012177
  15  0.000544878
  16  3.60262e-06
  17  10.3094
  18  16.357
  19  6.80516e-07
  20  0.000168964
  21  11.3094
  22  8.79429e-05
  23  2.736e-07
  24  0.191652
  25  0.239584
Done.

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

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  1.000e-04  5.449e-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.269e+00  2.396e-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:  8.142e-01  1.917e-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.71e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.08e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/978721/likelihoodResults_245808001_246067201_4FGL_J1139.0+4033_daily_bin25.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) = 6098.85617037
delta logL = -0.000141823416925

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6098.85602873
delta logL = -1.84148120752e-07

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 'Index     '    3.2267       1.0000          .0000       10.000    
     3 'Normalizat'    .81418       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2689       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=   6098.856     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      280 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10120E-03    267.61        .18142E-02** at limit **
   2  Index         3.1732        7.7431        .50000        .46127E-05
   3  Normalizat    .81419        .11828E-01    .24950E-03    .22063E-03
   4  Prefactor     1.2689        .14853E-01    .25586E-03    .15415E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001012
  Index      = 3.17316
  Normalizat = 0.814185
  Prefactor  = 1.26892
 **********
 **   18 **HESSE 
 **********

 FCN=   6098.856     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      309 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10120E-03    1131.8        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.1732        5.8975        .50000       -.37403    
   3  Normalizat    .81419        .25522E-01    .99799E-05   -.99545    
   4  Prefactor     1.2689        .32051E-01    .51173E-04   -.84236    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.27269e-09
Minuit parameter uncertainties:
  1  0.0751662
  2  1255.78
  3  0.0255228
  4  0.0320517
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/978721': 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) = 6098.85602869
delta logL = -1.45981175592e-07

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  1.012e-04  7.517e-02  1.000e-04  1.000e+04 ( 1.000e-13)
342        Index:  3.173e+00  1.256e+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.269e+00  3.205e-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:  8.142e-01  2.552e-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/978721/cmap_HighResolution_245808001_246067201_4FGL_J1139.0+4033_daily_bin25.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.08e-03', job_status='DONE', photon_flux_upper_limit='7.71e-08', time_completed='2021-09-04 06:55:54.707613', job_id='978721', GAL2='1.27', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1630763754.71', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.27', dlogl='-1.46e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.72' WHERE bin_id='25' AND source_name='4FGL J1139.0+4033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 06:55:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 978721: <4FGL_J1139.0+4033_daily_bin25> in cluster <slac> Done

Job <4FGL_J1139.0+4033_daily_bin25> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 06:41:17 2021
Job was executed on host(s) <bullet0218>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 06:41:18 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:41:18 2021
Terminated at Sat Sep  4 06:55:55 2021
Results reported at Sat Sep  4 06:55:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1139.0+4033_daily_bin25 174.764 40.5617 245808001 246067201 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 :                                   865.27 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             307.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   876 sec.
    Turnaround time :                            878 sec.

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

