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


Performing analysis on: 4FGL_J1139.0+4033_daily_bin164
RA = 174.764, Dec = 40.5617
tmin = 281836801, tmax = 282096001
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='981515', job_status='RUN', time_executed='2021-09-04 06:51:46.041479', time_epoch_executed='1630763506.04' WHERE source_name='4FGL J1139.0+4033' and cadence='daily' and bin_id='164'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/981515

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/981515/ft1_4FGL_J1139.0+4033_daily_bin164.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/981515/ft2_4FGL_J1139.0+4033_daily_bin164.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/981515/ft1_4FGL_J1139.0+4033_daily_bin164.fits outfile=/scratch/kocevski/981515/ft1_filteredMKT_4FGL_J1139.0+4033_daily_bin164.fits ra=174.764 dec=40.5617 rad=12.0 tmin=281836801.0 tmax=282096001.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.96
user 3.75
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/981515/ft1_filtered_4FGL_J1139.0+4033_daily_bin164.fits" evtable="EVENTS" scfile=/scratch/kocevski/981515/ft2_4FGL_J1139.0+4033_daily_bin164.fits sctable="SC_DATA" outfile=/scratch/kocevski/981515/ltcube_281836801_282096001_4FGL_J1139.0+4033_daily_bin164.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/981515/ft2_4FGL_J1139.0+4033_daily_bin164.fits
.....................!
real 11.88
user 11.48
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/981515/ft1_filtered_4FGL_J1139.0+4033_daily_bin164.fits evtable="EVENTS" scfile=/scratch/kocevski/981515/ft2_4FGL_J1139.0+4033_daily_bin164.fits sctable="SC_DATA" expcube=/scratch/kocevski/981515/ltcube_281836801_282096001_4FGL_J1139.0+4033_daily_bin164.fits outfile=/scratch/kocevski/981515/expmap_281836801_282096001_4FGL_J1139.0+4033_daily_bin164.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/981515/ltcube_281836801_282096001_4FGL_J1139.0+4033_daily_bin164.fits
.....................!
real 192.17
user 186.53
sys 5.28

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/981515/ft1_filtered_4FGL_J1139.0+4033_daily_bin164.fits scfile=/scratch/kocevski/981515/ft2_4FGL_J1139.0+4033_daily_bin164.fits outfile=/scratch/kocevski/981515/cmap_281836801_282096001_4FGL_J1139.0+4033_daily_bin164.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/981515/ft1_filtered_4FGL_J1139.0+4033_daily_bin164.fits scfile=/scratch/kocevski/981515/ft2_4FGL_J1139.0+4033_daily_bin164.fits outfile=/scratch/kocevski/981515/cmap_HighResolution_281836801_282096001_4FGL_J1139.0+4033_daily_bin164.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.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.065       1.0000         .10000E-03   10000.    
     2 'Prefactor '    59.660       1.0000         .10000E-03   10000.    
     3 'norm      '    2.0529       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10282E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    64.238       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.9302       1.0000         .10000E-03   10000.    
    10 'Prefactor '    70.136       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.2095       1.0000         .10000E-03   10000.    
    12 'norm      '    4.7712       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13457E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10351E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .32760       1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.7410       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.2465       1.0000         .10000E-03   10000.    
    20 'Prefactor '    96.889       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.928       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1071       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .84083       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=   5697.417     FROM MIGRAD    STATUS=CONVERGED    596 CALLS     2993 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.129        49.878        .31615E-05    .31398E-03
   2  Prefactor     59.683        69.174        .13237E-05    .12006E-03
   3  norm          2.0529        .42386        .71895E-08   -.13154E-03
   4  Prefactor     .10000E-03    8.2619        .33379E-07** at limit **
   5  Prefactor     .10000E-03    33.220       -.94806E-07** at limit **
   6  Prefactor     .10000E-03    153.73        .72528E-06** at limit **
   7  norm          64.242        20.840        .70472E-07   -.68884E-04
   8  norm          .10000E-03    54.032       -.15081E-06** at limit **
   9  Prefactor     4.9295        3.7144       -.12479E-06   -.13129E-03
  10  Prefactor     70.166        64.716        .11709E-05    .15577E-03
  11  Prefactor     3.2218        16.805        .13495E-05   -.13491E-03
  12  norm          4.7705        3.1195       -.85028E-07   -.14295E-03
  13  Prefactor     .10019E-03    7.7762        .22488E-05** at limit **
  14  Prefactor     .10000E-03    4.1661       -.24615E-06** at limit **
  15  Prefactor     .10000E-03    22.372       -.35897E-06** at limit **
  16  norm          .32766        .94528        .51490E-06    .21635E-04
  17  norm          .10000E-03    6.1975       -.58248E-07** at limit **
  18  Prefactor     3.7418        13.522        .11053E-04    .12675E-04
  19  Prefactor     1.2467        2.9576        .75256E-06    .45290E-04
  20  Prefactor     96.890        52.689       -.39226E-06   -.36149E-04
  21  Prefactor     .10000E-03    14.857       -.20146E-06** at limit **
  22  Prefactor     14.928        16.268       -.31433E-06   -.23459E-04
  23  Prefactor     .10000E-03    2.8844       -.48885E-07** at limit **
  24  Normalizat    1.1071        .18371       -.17246E-05   -.14851E-03
  25  Prefactor     .84087        .21698        .59295E-06   -.17970E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.1295
  Prefactor  = 59.6829
  norm       = 2.05287
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 64.2423
  norm       = 0.0001
  Prefactor  = 4.92949
  Prefactor  = 70.1658
  Prefactor  = 3.22175
  norm       = 4.77052
  Prefactor  = 0.000100189
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.327657
  norm       = 0.0001
  Prefactor  = 3.74179
  Prefactor  = 1.24669
  Prefactor  = 96.8904
  Prefactor  = 0.0001
  Prefactor  = 14.9281
  Prefactor  = 0.0001
  Normalizat = 1.10706
  Prefactor  = 0.840873
 **********
 **   18 **HESSE 
 **********

 FCN=   5697.417     FROM HESSE     STATUS=OK           421 CALLS     3414 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.129        50.065        .74314E-04   -1.4628    
   2  Prefactor     59.683        69.216        .51944E-04   -1.4161    
   3  norm          2.0529        .42411        .21518E-04   -1.5421    
   4  Prefactor     .10000E-03    8.2802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    34.043        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    154.06        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          64.242        20.834        .50070E-04   -1.4103    
   8  norm          .10000E-03    54.136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.9295        3.7260        .10296E-03   -1.5264    
  10  Prefactor     70.166        65.173        .47932E-04   -1.4031    
  11  Prefactor     3.2218        15.632        .22615E-03   -1.5349    
  12  norm          4.7705        3.1061        .96250E-04   -1.5271    
  13  Prefactor     .10019E-03    30.682        .37366E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.2677        .30052E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    22.390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .32766        .93359        .11206E-03   -1.5593    
  17  norm          .10000E-03    6.2754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.7418        13.593        .10438E-02   -1.5321    
  19  Prefactor     1.2467        2.9269        .19018E-03   -1.5485    
  20  Prefactor     96.890        51.955        .40836E-04   -1.3736    
  21  Prefactor     .10000E-03    14.903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     14.928        16.268        .10366E-03   -1.4935    
  23  Prefactor     .10000E-03    2.8942        .12519E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1071        .21164        .23365E-03   -.89525    
  25  Prefactor     .84087        .25027        .31885E-03   -.98239    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.2655e-09
Minuit parameter uncertainties:
  1  50.1375
  2  69.309
  3  0.42411
  4  2.77764e-06
  5  1.22912e-05
  6  0.00112478
  7  20.836
  8  4.86746e-05
  9  3.7262
  10  65.2396
  11  14.1992
  12  3.1062
  13  0.00481287
  14  1.86267e-05
  15  0.000111556
  16  0.933627
  17  3.95096e-06
  18  13.6042
  19  2.92725
  20  51.9795
  21  1.72725e-05
  22  16.2726
  23  8.19352e-07
  24  0.211798
  25  0.250614
Done.

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

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  1.000e-04  1.116e-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:  8.409e-01  2.506e-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.107e+00  2.118e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 174.764 40.562
Photon Flux Upper Limit: 7.70e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.07e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/981515/likelihoodResults_281836801_282096001_4FGL_J1139.0+4033_daily_bin164.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) = 5697.41676807
delta logL = -0.0002127317739

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5697.41655759
delta logL = -2.25151688937e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.3730       1.0000          .0000       10.000    
     3 'Normalizat'    1.1071       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84088       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=   5697.417     FROM MIGRAD    STATUS=CONVERGED    110 CALLS      296 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    176.85        .18142E-01** at limit **
   2  Index         1.9753        5.8685        .50000        .89130E-08
   3  Normalizat    1.1071        .10203E-01    .23365E-03    .20607E-02
   4  Prefactor     .84088        .12351E-01    .31885E-03    .15206E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.97533
  Normalizat = 1.10706
  Prefactor  = 0.840879
 **********
 **   18 **HESSE 
 **********

 FCN=   5697.417     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      325 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    915.66        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9753        8.9069        .50000       -.64968    
   3  Normalizat    1.1071        .24041E-01    .46730E-04   -.89525    
   4  Prefactor     .84088        .29102E-01    .63769E-04   -.98239    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.23071e-10
Minuit parameter uncertainties:
  1  0.00126998
  2  1343.17
  3  0.024041
  4  0.0291028
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/981515': 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) = 5697.41655458
delta logL = 7.56689587433e-07

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  1.000e-04  1.270e-03  1.000e-04  1.000e+04 ( 1.000e-13)
342        Index:  1.975e+00  1.343e+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:  8.409e-01  2.910e-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.107e+00  2.404e-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/981515/cmap_HighResolution_281836801_282096001_4FGL_J1139.0+4033_daily_bin164.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.07e-03', job_status='DONE', photon_flux_upper_limit='7.70e-08', time_completed='2021-09-04 07:05:10.588883', job_id='981515', GAL2='0.84', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1630764310.59', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='7.57e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.72' WHERE bin_id='164' AND source_name='4FGL J1139.0+4033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 07:05:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 981515: <4FGL_J1139.0+4033_daily_bin164> in cluster <slac> Done

Job <4FGL_J1139.0+4033_daily_bin164> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 06:51:28 2021
Job was executed on host(s) <bullet0280>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 06:51:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 06:51:30 2021
Terminated at Sat Sep  4 07:05:11 2021
Results reported at Sat Sep  4 07:05:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1139.0+4033_daily_bin164 174.764 40.5617 281836801 282096001 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 :                                   792.44 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             333.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   820 sec.
    Turnaround time :                            823 sec.

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

