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


Performing analysis on: 4FGL_J1139.0+4033_daily_bin893
RA = 174.764, Dec = 40.5617
tmin = 470793601, tmax = 471052801
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='987619', job_status='RUN', time_executed='2021-09-04 07:06:53.014405', time_epoch_executed='1630764413.01' WHERE source_name='4FGL J1139.0+4033' and cadence='daily' and bin_id='893'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/987619

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/987619/ft1_4FGL_J1139.0+4033_daily_bin893.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/987619/ft2_4FGL_J1139.0+4033_daily_bin893.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/987619/ft1_4FGL_J1139.0+4033_daily_bin893.fits outfile=/scratch/kocevski/987619/ft1_filteredMKT_4FGL_J1139.0+4033_daily_bin893.fits ra=174.764 dec=40.5617 rad=12.0 tmin=470793601.0 tmax=471052801.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.53
user 3.30
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/987619/ft1_filtered_4FGL_J1139.0+4033_daily_bin893.fits evtable="EVENTS" scfile=/scratch/kocevski/987619/ft2_4FGL_J1139.0+4033_daily_bin893.fits sctable="SC_DATA" expcube=/scratch/kocevski/987619/ltcube_470793601_471052801_4FGL_J1139.0+4033_daily_bin893.fits outfile=/scratch/kocevski/987619/expmap_470793601_471052801_4FGL_J1139.0+4033_daily_bin893.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/987619/ltcube_470793601_471052801_4FGL_J1139.0+4033_daily_bin893.fits
.....................!
real 193.14
user 187.83
sys 4.73

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/987619/ft1_filtered_4FGL_J1139.0+4033_daily_bin893.fits scfile=/scratch/kocevski/987619/ft2_4FGL_J1139.0+4033_daily_bin893.fits outfile=/scratch/kocevski/987619/cmap_470793601_471052801_4FGL_J1139.0+4033_daily_bin893.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=174.764 yref=40.5617 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/987619/ft1_filtered_4FGL_J1139.0+4033_daily_bin893.fits scfile=/scratch/kocevski/987619/ft2_4FGL_J1139.0+4033_daily_bin893.fits outfile=/scratch/kocevski/987619/cmap_HighResolution_470793601_471052801_4FGL_J1139.0+4033_daily_bin893.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.19

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.7943       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    25.494       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10492E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    23.940       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.0762       1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.794       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.3350       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    6.5204       1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.791       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    22.203       1.0000         .10000E-03   10000.    
    22 'Prefactor '    12.190       1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.301       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0790       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .83879       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=   6482.547     FROM MIGRAD    STATUS=CONVERGED    588 CALLS     2907 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.352        .25759E-05** at limit **
   2  Prefactor     .10000E-03    32.683        .27244E-05** at limit **
   3  norm          1.7943        .35041       -.75389E-08    .10132E-02
   4  Prefactor     .10000E-03    7.0470       -.23283E-07** at limit **
   5  Prefactor     .10000E-03    4.2700       -.50207E-07** at limit **
   6  Prefactor     .10000E-03    79.945        .53487E-06** at limit **
   7  norm          .10000E-03    4.7575       -.10577E-06** at limit **
   8  norm          25.495        26.804        .64118E-07   -.26498E-06
   9  Prefactor     .10000E-03    1.3319       -.13298E-05** at limit **
  10  Prefactor     23.954        39.319        .15587E-04    .41101E-04
  11  Prefactor     .10000E-03    4.3864        .10610E-06** at limit **
  12  norm          3.0763        2.3911       -.94598E-06    .85125E-03
  13  Prefactor     12.794        11.238        .11303E-06    .29926E-04
  14  Prefactor     8.3361        5.0825       -.63671E-06    .78001E-03
  15  Prefactor     .10000E-03    14.376        .15941E-07** at limit **
  16  norm          .10000E-03    .44335       -.73323E-08** at limit **
  17  norm          6.5203        6.8869        .11069E-05   -.20605E-03
  18  Prefactor     11.779        27.156       -.53752E-05    .16196E-03
  19  Prefactor     .10000E-03    1.4004        .61171E-08** at limit **
  20  Prefactor     .10000E-03    28.100       -.52622E-05** at limit **
  21  Prefactor     22.203        16.312       -.15309E-06    .10207E-04
  22  Prefactor     12.185        25.644        .10668E-05    .17698E-04
  23  Prefactor     12.301        8.3678        .64154E-07   -.25182E-04
  24  Normalizat    1.0791        .16157        .58607E-06    .27435E-03
  25  Prefactor     .83875        .18853       -.56342E-06    .19985E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.79425
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 25.4945
  Prefactor  = 0.000100004
  Prefactor  = 23.9538
  Prefactor  = 0.0001
  norm       = 3.07627
  Prefactor  = 12.7943
  Prefactor  = 8.33606
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.52027
  Prefactor  = 11.7794
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 22.2026
  Prefactor  = 12.1849
  Prefactor  = 12.301
  Normalizat = 1.07907
  Prefactor  = 0.83875
 **********
 **   18 **HESSE 
 **********

 FCN=   6482.547     FROM HESSE     STATUS=OK           431 CALLS     3338 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    32.635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.7943        .35085        .20371E-04   -1.5440    
   4  Prefactor     .10000E-03    7.0776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.2723        .16248E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    80.013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    4.7711        .17150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          25.495        26.805        .79337E-04   -1.4698    
   9  Prefactor     .10000E-03    2.2105        .17599E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     23.954        39.970        .81867E-04   -1.4729    
  11  Prefactor     .10000E-03    4.3901        .16466E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.0763        2.3617        .94748E-04   -1.5357    
  13  Prefactor     12.794        11.231        .11199E-03   -1.4992    
  14  Prefactor     8.3361        5.0156        .13182E-03   -1.5130    
  15  Prefactor     .10000E-03    14.413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .92213        .10333E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.5203        6.8621        .15717E-03   -1.5197    
  18  Prefactor     11.779        26.959        .11666E-03   -1.5021    
  19  Prefactor     .10000E-03    2.4013        .18213E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    27.986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     22.203        16.097        .85006E-04   -1.4765    
  22  Prefactor     12.185        25.578        .11473E-03   -1.5010    
  23  Prefactor     12.301        8.3659        .11421E-03   -1.5006    
  24  Normalizat    1.0791        .18809        .22496E-03   -.90427    
  25  Prefactor     .83875        .21884        .30186E-03   -.98315    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.51887e-09
Minuit parameter uncertainties:
  1  0.000185423
  2  0.000220317
  3  0.350848
  4  6.09015e-06
  5  9.88596e-07
  6  7.65442e-05
  7  2.71432e-07
  8  26.8174
  9  0.000198842
  10  40.0143
  11  7.85256e-07
  12  2.36177
  13  11.2327
  14  5.0159
  15  2.29399e-06
  16  8.34358e-08
  17  6.86297
  18  26.9866
  19  4.54463e-08
  20  0.000369712
  21  16.1
  22  25.6007
  23  8.3667
  24  0.188205
  25  0.219071
Done.

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

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  1.000e-04  2.294e-06  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:  8.387e-01  2.191e-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.079e+00  1.882e-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: 5.37e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.23e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/987619/likelihoodResults_470793601_471052801_4FGL_J1139.0+4033_daily_bin893.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) = 6482.5470706
delta logL = -0.000330559513714

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6482.54674002
delta logL = 2.91156538879e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7052       1.0000          .0000       10.000    
     3 'Normalizat'    1.0791       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83875       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=   6482.547     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      247 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10239E-03    23.255        .18142E-01** at limit **
   2  Index         2.5946        8.4461        .50000        .67756E-05
   3  Normalizat    1.0791        .48785E-02    .22496E-03   -.74947E-04
   4  Prefactor     .83875        .58681E-02    .30186E-03    .55250E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102387
  Index      = 2.5946
  Normalizat = 1.07907
  Prefactor  = 0.838751
 **********
 **   18 **HESSE 
 **********

 FCN=   6482.547     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      276 TOTAL
                     EDM=   .93E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10239E-03    174.47        .30731E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5946        5.2333        .50000       -.50189    
   3  Normalizat    1.0791        .13468E-01    .89983E-05   -.90427    
   4  Prefactor     .83875        .16199E-01    .12074E-04   -.98315    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.25157e-09
Minuit parameter uncertainties:
  1  0.0409307
  2  808.532
  3  0.0134676
  4  0.0161994
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/987619': 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) = 6482.5467399
delta logL = 1.49336301547e-07

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  1.024e-04  4.093e-02  1.000e-04  1.000e+04 ( 1.000e-13)
342        Index:  2.595e+00  8.085e+02  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.388e-01  1.620e-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:  1.079e+00  1.347e-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/987619/cmap_HighResolution_470793601_471052801_4FGL_J1139.0+4033_daily_bin893.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.23e-03', job_status='DONE', photon_flux_upper_limit='5.37e-08', time_completed='2021-09-04 07:21:10.350535', job_id='987619', GAL2='0.84', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1630765270.35', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='1.49e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.72' WHERE bin_id='893' AND source_name='4FGL J1139.0+4033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 07:21:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 987619: <4FGL_J1139.0+4033_daily_bin893> in cluster <slac> Done

Job <4FGL_J1139.0+4033_daily_bin893> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 07:06:41 2021
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 07:06:43 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:06:43 2021
Terminated at Sat Sep  4 07:21:11 2021
Results reported at Sat Sep  4 07:21:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1139.0+4033_daily_bin893 174.764 40.5617 470793601 471052801 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 :                                   843.27 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             316.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   867 sec.
    Turnaround time :                            870 sec.

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

