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


Performing analysis on: 4FGL_J1139.0+4033_daily_bin1339
RA = 174.764, Dec = 40.5617
tmin = 586396801, tmax = 586656001
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='990996', job_status='RUN', time_executed='2021-09-04 07:16:53.782110', time_epoch_executed='1630765013.78' WHERE source_name='4FGL J1139.0+4033' and cadence='daily' and bin_id='1339'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/990996

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

Retrieving the FT1 file...

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

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

Retrieving 31 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/990996/ft1_4FGL_J1139.0+4033_daily_bin1339.fits


Retrieving the FT1 file...

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

Retrieving 31 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/990996/ft2_4FGL_J1139.0+4033_daily_bin1339.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/990996/ft1_4FGL_J1139.0+4033_daily_bin1339.fits outfile=/scratch/kocevski/990996/ft1_filteredMKT_4FGL_J1139.0+4033_daily_bin1339.fits ra=174.764 dec=40.5617 rad=12.0 tmin=586396801.0 tmax=586656001.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 2.66
user 2.38
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/990996/ft1_filtered_4FGL_J1139.0+4033_daily_bin1339.fits evtable="EVENTS" scfile=/scratch/kocevski/990996/ft2_4FGL_J1139.0+4033_daily_bin1339.fits sctable="SC_DATA" expcube=/scratch/kocevski/990996/ltcube_586396801_586656001_4FGL_J1139.0+4033_daily_bin1339.fits outfile=/scratch/kocevski/990996/expmap_586396801_586656001_4FGL_J1139.0+4033_daily_bin1339.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/990996/ltcube_586396801_586656001_4FGL_J1139.0+4033_daily_bin1339.fits
.....................!
real 190.94
user 185.86
sys 4.58

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/990996/ft1_filtered_4FGL_J1139.0+4033_daily_bin1339.fits scfile=/scratch/kocevski/990996/ft2_4FGL_J1139.0+4033_daily_bin1339.fits outfile=/scratch/kocevski/990996/cmap_586396801_586656001_4FGL_J1139.0+4033_daily_bin1339.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.57
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/990996/ft1_filtered_4FGL_J1139.0+4033_daily_bin1339.fits scfile=/scratch/kocevski/990996/ft2_4FGL_J1139.0+4033_daily_bin1339.fits outfile=/scratch/kocevski/990996/cmap_HighResolution_586396801_586656001_4FGL_J1139.0+4033_daily_bin1339.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.62
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    9.0113       1.0000         .10000E-03   10000.    
     3 'norm      '    .52239       1.0000         .10000E-03   10000.    
     4 'Prefactor '    24.456       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11266E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    7.1461       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.1820       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.5992       1.0000         .10000E-03   10000.    
    15 'Prefactor '    113.93       1.0000         .10000E-03   10000.    
    16 'norm      '    1.2770       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.6946       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.4355       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    24.206       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3122       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .74062       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=   4240.547     FROM MIGRAD    STATUS=CONVERGED    579 CALLS     2935 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.577        .20574E-05** at limit **
   2  Prefactor     9.0084        206.72       -.57274E-05   -.37679E-05
   3  norm          .52240        .32201       -.18527E-07   -.31602E-03
   4  Prefactor     24.452        24.086        .90021E-06   -.94188E-05
   5  Prefactor     .10000E-03    11.908        .24404E-05** at limit **
   6  Prefactor     .10000E-03    196.29       -.24287E-05** at limit **
   7  norm          7.1496        17.140        .12031E-05   -.24105E-05
   8  norm          .10000E-03    20.216        .40806E-07** at limit **
   9  Prefactor     .10000E-03    1.6780       -.92709E-07** at limit **
  10  Prefactor     .10000E-03    22.366       -.19382E-05** at limit **
  11  Prefactor     .10000E-03    10.801        .36281E-06** at limit **
  12  norm          2.1820        2.6387       -.37305E-06   -.11482E-03
  13  Prefactor     .10000E-03    5.9317       -.21971E-07** at limit **
  14  Prefactor     7.5991        6.4991        .26335E-05    .15166E-03
  15  Prefactor     113.94        74.734        .64167E-05    .73681E-04
  16  norm          1.2767        1.6771       -.60173E-06   -.43791E-03
  17  norm          .10000E-03    10.965       -.19095E-05** at limit **
  18  Prefactor     1.6920        34.641        .69787E-06   -.32208E-03
  19  Prefactor     3.4350        4.4614        .50319E-06   -.14966E-02
  20  Prefactor     .10000E-03    82.800        .12005E-05** at limit **
  21  Prefactor     24.206        28.869       -.20640E-06   -.52460E-05
  22  Prefactor     .10000E-03    11.679        .13153E-05** at limit **
  23  Prefactor     .10000E-03    12.484       -.23757E-05** at limit **
  24  Normalizat    1.3123        .21688       -.14881E-05    .93833E-04
  25  Prefactor     .74053        .24074        .87492E-08   -.15034E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 9.0084
  norm       = 0.5224
  Prefactor  = 24.4524
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.14964
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.18198
  Prefactor  = 0.0001
  Prefactor  = 7.59915
  Prefactor  = 113.939
  norm       = 1.27673
  norm       = 0.0001
  Prefactor  = 1.69201
  Prefactor  = 3.43502
  Prefactor  = 0.0001
  Prefactor  = 24.2059
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.3123
  Prefactor  = 0.740532
 **********
 **   18 **HESSE 
 **********

 FCN=   4240.547     FROM HESSE     STATUS=OK           423 CALLS     3358 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.0084        207.68        .13352E-03   -1.5108    
   3  norm          .52240        .32262        .27240E-04   -1.5563    
   4  Prefactor     24.452        24.000        .81001E-04   -1.4719    
   5  Prefactor     .10000E-03    11.908        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    197.43        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          7.1496        17.079        .15006E-03   -1.5173    
   8  norm          .10000E-03    20.217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.7096        .82311E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    22.390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.1820        2.6187        .11039E-03   -1.5413    
  13  Prefactor     .10000E-03    5.9446        .15490E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.5991        6.4989        .14548E-03   -1.5157    
  15  Prefactor     113.94        74.244        .37691E-04   -1.3569    
  16  norm          1.2767        1.6278        .81452E-04   -1.5482    
  17  norm          .10000E-03    11.068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.6920        66.705        .16164E-02   -1.5448    
  19  Prefactor     3.4350        5.6533        .82506E-03   -1.5337    
  20  Prefactor     .10000E-03    83.010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     24.206        29.944        .81418E-04   -1.4724    
  22  Prefactor     .10000E-03    11.683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    12.685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.3123        .25580        .22593E-03   -.83200    
  25  Prefactor     .74053        .28040        .33284E-03   -1.0196    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.24837e-09
Minuit parameter uncertainties:
  1  3.30887e-05
  2  86.848
  3  0.322619
  4  24.009
  5  1.23018e-05
  6  2.39606e-05
  7  17.0911
  8  1.68806e-06
  9  1.62002e-05
  10  5.30779e-05
  11  5.97971e-06
  12  2.61881
  13  4.07113e-06
  14  6.49953
  15  74.3043
  16  1.62786
  17  1.05097e-05
  18  21.2725
  19  5.65416
  20  7.88397e-05
  21  29.9626
  22  1.52304e-05
  23  1.08341e-05
  24  0.256048
  25  0.280941
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
693    Prefactor:  7.405e-01  2.809e-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.312e+00  2.560e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.50
Ra Dec: 174.764 40.562
Photon Index (Fixed Index): 2.72 +/- 0.00
Photon Flux (Fixed Index): 1.21e-07 +/- 7.88e-08
Energy Flux (Fixed Index): 2.87e-05 +/- 1.87e-05

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) = 4239.55920791
delta logL = 0.98746341229

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4239.55498631
delta logL = 0.991685011925

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    36.866       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7818       1.0000          .0000       10.000    
     3 'Normalizat'    1.2420       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80122       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=   4239.555     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      305 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     36.859        91.055        .66007E-04   -.32724E-04
   2  Index         3.7822        1.5579        .36445E-02   -.83656E-04
   3  Normalizat    1.2416        .25291        .23074E-03   -.37551E-03
   4  Prefactor     .80161        .28557        .32139E-03   -.29228E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 36.8594
  Index      = 3.78216
  Normalizat = 1.24157
  Prefactor  = 0.801612
 **********
 **   18 **HESSE 
 **********

 FCN=   4239.555     FROM HESSE     STATUS=OK            25 CALLS      330 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     36.859        56.889        .26403E-05   -1.4493    
   2  Index         3.7822        .98116        .14578E-03   -.24604    
   3  Normalizat    1.2416        .25262        .46149E-04   -.85328    
   4  Prefactor     .80161        .28381        .64278E-04   -.99669    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.62386e-10
Minuit parameter uncertainties:
  1  56.9729
  2  0.98798
  3  0.25287
  4  0.284329
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/990996': 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) = 4239.55498489
delta logL = 0.991686429533

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  3.686e+01  5.697e+01  1.000e-04  1.000e+04 ( 1.000e-13)
342        Index:  3.782e+00  9.880e-01  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:  8.016e-01  2.843e-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.242e+00  2.529e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.73
Ra Dec: 174.764 40.562
Photon Index (Free Index): 3.78 +/- 0.99
Photon Flux (Free Index): 1.85e-07 +/- 9.06e-08
Energy Flux (Free Index): 2.88e-05 +/- 1.45e-05

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/990996/cmap_HighResolution_586396801_586656001_4FGL_J1139.0+4033_daily_bin1339.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.21e-07', energy_flux2='2.88e-05', photon_flux_error='7.88e-08', dlogl='9.92e-01', energy_flux='2.87e-05', photon_flux2='1.85e-07', job_status='DONE', time_completed='2021-09-04 07:26:33.286499', photon_index_error2='0.99', photon_index2='3.78', ts='4.50', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', energy_flux_error2='1.45e-05', EG='1.31', time_epoch_completed='1630765593.29', return_code='0', job_id='990996', GAL2='0.80', EG2='1.24', return_code2='0', energy_flux_error='1.87e-05', photon_flux_error2='9.06e-08', ts2='6.73', photon_index='2.72' WHERE bin_id='1339' AND source_name='4FGL J1139.0+4033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 07:26:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 990996: <4FGL_J1139.0+4033_daily_bin1339> in cluster <slac> Done

Job <4FGL_J1139.0+4033_daily_bin1339> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sat Sep  4 07:16:38 2021
Job was executed on host(s) <bullet0261>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 07:16:39 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:16:39 2021
Terminated at Sat Sep  4 07:26:33 2021
Results reported at Sat Sep  4 07:26:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1139.0+4033_daily_bin1339 174.764 40.5617 586396801 586656001 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 :                                   576.10 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             338.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   594 sec.
    Turnaround time :                            595 sec.

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

