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


Performing analysis on: 4FGL_J1139.0+4033_daily_bin206
RA = 174.764, Dec = 40.5617
tmin = 292723201, tmax = 292982401
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='983365', job_status='RUN', time_executed='2021-09-04 06:56:30.406433', time_epoch_executed='1630763790.41' WHERE source_name='4FGL J1139.0+4033' and cadence='daily' and bin_id='206'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/983365

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/983365/ft1_4FGL_J1139.0+4033_daily_bin206.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/983365/ft2_4FGL_J1139.0+4033_daily_bin206.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/983365/ft1_4FGL_J1139.0+4033_daily_bin206.fits outfile=/scratch/kocevski/983365/ft1_filteredMKT_4FGL_J1139.0+4033_daily_bin206.fits ra=174.764 dec=40.5617 rad=12.0 tmin=292723201.0 tmax=292982401.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 4.94
user 4.14
sys 0.29

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/983365/ft2_4FGL_J1139.0+4033_daily_bin206.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/983365/ft1_filteredMKT_4FGL_J1139.0+4033_daily_bin206.fits evtable="EVENTS" outfile="/scratch/kocevski/983365/ft1_filtered_4FGL_J1139.0+4033_daily_bin206.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.56
user 0.33
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/983365/ft1_filtered_4FGL_J1139.0+4033_daily_bin206.fits evtable="EVENTS" scfile=/scratch/kocevski/983365/ft2_4FGL_J1139.0+4033_daily_bin206.fits sctable="SC_DATA" expcube=/scratch/kocevski/983365/ltcube_292723201_292982401_4FGL_J1139.0+4033_daily_bin206.fits outfile=/scratch/kocevski/983365/expmap_292723201_292982401_4FGL_J1139.0+4033_daily_bin206.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/983365/ltcube_292723201_292982401_4FGL_J1139.0+4033_daily_bin206.fits
.....................!
real 191.46
user 186.19
sys 4.85

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/983365/ft1_filtered_4FGL_J1139.0+4033_daily_bin206.fits scfile=/scratch/kocevski/983365/ft2_4FGL_J1139.0+4033_daily_bin206.fits outfile=/scratch/kocevski/983365/cmap_292723201_292982401_4FGL_J1139.0+4033_daily_bin206.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/983365/ft1_filtered_4FGL_J1139.0+4033_daily_bin206.fits scfile=/scratch/kocevski/983365/ft2_4FGL_J1139.0+4033_daily_bin206.fits outfile=/scratch/kocevski/983365/cmap_HighResolution_292723201_292982401_4FGL_J1139.0+4033_daily_bin206.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.58
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.1581       1.0000         .10000E-03   10000.    
     4 'Prefactor '    25.418       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.1377       1.0000         .10000E-03   10000.    
     6 'Prefactor '    50.020       1.0000         .10000E-03   10000.    
     7 'norm      '    39.335       1.0000         .10000E-03   10000.    
     8 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10235E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10286E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.455       1.0000         .10000E-03   10000.    
    12 'norm      '    3.9075       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.4638       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .28572E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    77.731       1.0000         .10000E-03   10000.    
    16 'norm      '    .26760       1.0000         .10000E-03   10000.    
    17 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    23.449       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.0180       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12214E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .47770       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .79062       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2486       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=   6934.702     FROM MIGRAD    STATUS=CONVERGED   1067 CALLS     3458 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.647        .18142E-02** at limit **
   2  Prefactor     .10000E-03    22.038        .18142E-02** at limit **
   3  norm          1.1582        .32501        .23139E-04   -.28644E-03
   4  Prefactor     25.407        21.797        .79456E-04   -.13278E-03
   5  Prefactor     7.1331        14.320        .15015E-03   -.29227E-04
   6  Prefactor     50.123        78.356        .28351E-03   -.12162E-03
   7  norm          39.343        18.191        .63909E-04   -.17401E-03
   8  norm          .10000E-03    16.817        .18142E-02** at limit **
   9  Prefactor     .10000E-03    2.7298        .19822E-02** at limit **
  10  Prefactor     .10000E-03    28.441        .18142E-02** at limit **
  11  Prefactor     13.452        19.774        .10920E-03   -.32899E-04
  12  norm          3.9128        3.1123        .11958E-03   -.28416E-03
  13  Prefactor     2.4623        24.317        .26054E-03   -.87708E-05
  14  Prefactor     .10000E-03    12.440        .23862E-02** at limit **
  15  Prefactor     77.793        55.316        .45548E-04    .33047E-03
  16  norm          .26763        .98249        .13251E-03    .11388E-02
  17  norm          .10000E-03    3.1222        .14367E-02** at limit **
  18  Prefactor     23.467        24.828        .82720E-04   -.19706E-03
  19  Prefactor     9.0055        4.0977        .10724E-03    .77259E-03
  20  Prefactor     .10000E-03    22.756        .18142E-02** at limit **
  21  Prefactor     .10000E-03    158.10        .70943E-02** at limit **
  22  Prefactor     .37934        31.510        .11400        .16944E-03
  23  Prefactor     .10000E-03    4.0795        .16364E-02** at limit **
  24  Normalizat    .79113        .20207        .27785E-03    .10892E-03
  25  Prefactor     1.2481        .23272        .27417E-03   -.16698E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.15821
  Prefactor  = 25.4071
  Prefactor  = 7.13315
  Prefactor  = 50.1231
  norm       = 39.343
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 13.4524
  norm       = 3.91277
  Prefactor  = 2.46233
  Prefactor  = 0.000100001
  Prefactor  = 77.7928
  norm       = 0.267634
  norm       = 0.0001
  Prefactor  = 23.4672
  Prefactor  = 9.00554
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.379338
  Prefactor  = 0.0001
  Normalizat = 0.791128
  Prefactor  = 1.24812
 **********
 **   18 **HESSE 
 **********

 FCN=   6934.702     FROM HESSE     STATUS=OK           411 CALLS     3869 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.647        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    22.038        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.1582        .32501        .92555E-06   -1.5493    
   4  Prefactor     25.407        21.793        .31782E-05   -1.4699    
   5  Prefactor     7.1331        14.319        .60058E-05   -1.5174    
   6  Prefactor     50.123        78.349        .11340E-04   -1.4291    
   7  norm          39.343        18.190        .12782E-04   -1.4453    
   8  norm          .10000E-03    16.818        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.7361        .39644E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    28.442        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.452        19.743        .43679E-05   -1.4974    
  12  norm          3.9128        3.1115        .47834E-05   -1.5312    
  13  Prefactor     2.4623        24.235        .10421E-04   -1.5394    
  14  Prefactor     .10000E-03    12.549        .47725E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     77.793        55.250        .91095E-05   -1.3942    
  16  norm          .26763        .98109        .53006E-05   -1.5605    
  17  norm          .10000E-03    3.1223        .28733E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     23.467        24.804        .16544E-04   -1.4739    
  19  Prefactor     9.0055        4.0758        .42898E-05   -1.5108    
  20  Prefactor     .10000E-03    22.757        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    161.59        .28377E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .37934        29.229        .11966       -1.5585    
  23  Prefactor     .10000E-03    4.0805        .32727E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .79113        .20213        .11114E-04   -1.0040    
  25  Prefactor     1.2481        .23291        .54834E-04   -.84863    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.3642e-09
Minuit parameter uncertainties:
  1  4.2123e-06
  2  5.24308e-05
  3  0.325006
  4  21.8003
  5  14.326
  6  78.5105
  7  18.1926
  8  4.20028e-05
  9  0.00013488
  10  0.000253969
  11  19.7526
  12  3.11159
  13  15.4577
  14  0.000224657
  15  55.2868
  16  0.981147
  17  1.25378e-05
  18  24.8149
  19  4.07591
  20  0.000189707
  21  0.00175134
  22  6.66218
  23  9.23182e-06
  24  0.202319
  25  0.233103
Done.

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

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  7.779e+01  5.529e+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:  1.248e+00  2.331e-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:  7.911e-01  2.023e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.79
Ra Dec: 174.764 40.562
Photon Index (Fixed Index): 2.72 +/- 0.00
Photon Flux (Fixed Index): 8.25e-08 +/- 5.86e-08
Energy Flux (Fixed Index): 1.96e-05 +/- 1.39e-05

TS (Fixed Index): 3.79
Ra Dec: 174.764 40.562
Photon Flux Upper Limit: 1.79e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.41e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/983365/likelihoodResults_292723201_292982401_4FGL_J1139.0+4033_daily_bin206.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6931.82313015
delta logL = 2.87869880582

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6931.75376894
delta logL = 2.94806001069

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2756       1.0000         .10000E-03   10000.    
     2 'Index     '    5.4611       1.0000          .0000       10.000    
     3 'Normalizat'    .65682       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3746       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6931.754     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      279 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2560        11.479        .68053E-02   -.37405E-02
   2  Index         5.4665        2.4040        .81518E-01   -.41011E-03
   3  Normalizat    .65669        .64231E-01    .68186E-01   -.22597E-03
   4  Prefactor     1.3744        .77338E-01    .59529E-01   -.21865E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.256
  Index      = 5.46654
  Normalizat = 0.65669
  Prefactor  = 1.37443
 **********
 **   18 **HESSE 
 **********

 FCN=   6931.754     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      310 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2560        16.522        .46158E-04   -1.5408    
   2  Index         5.4665        2.9682        .34283E-02    .93445E-01
   3  Normalizat    .65669        .18416        .30175E-03   -1.0563    
   4  Prefactor     1.3744        .21965        .26323E-03   -.81120    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.11845e-10
Minuit parameter uncertainties:
  1  12.215
  2  3.18015
  3  0.184332
  4  0.219803
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/983365': 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) = 6931.75375745
delta logL = 2.94807150016

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
693    Prefactor:  1.374e+00  2.198e-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:  6.567e-01  1.843e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.67
Ra Dec: 174.764 40.562
Photon Index (Free Index): 5.47 +/- 3.18
Photon Flux (Free Index): 1.78e-07 +/- 6.98e-08
Energy Flux (Free Index): 2.29e-05 +/- 1.04e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/983365/cmap_HighResolution_292723201_292982401_4FGL_J1139.0+4033_daily_bin206.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.41e-02', comment='SUCCESS', photon_flux='8.25e-08', energy_flux2='2.29e-05', photon_flux_error='5.86e-08', dlogl='2.95e+00', energy_flux='1.96e-05', photon_flux2='1.78e-07', job_status='DONE', time_completed='2021-09-04 07:11:52.897795', photon_index_error2='3.18', photon_index2='5.47', ts='3.79', fit_tolerance='1e-08', GAL='1.25', photon_index_error='0.00', photon_flux_upper_limit='1.79e-07', energy_flux_error2='1.04e-05', EG='0.79', time_epoch_completed='1630764712.9', return_code='0', job_id='983365', GAL2='1.37', EG2='0.66', return_code2='102', energy_flux_error='1.39e-05', photon_flux_error2='6.98e-08', ts2='10.67', photon_index='2.72' WHERE bin_id='206' AND source_name='4FGL J1139.0+4033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 07:11:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0286>
Subject: Job 983365: <4FGL_J1139.0+4033_daily_bin206> in cluster <slac> Done

Job <4FGL_J1139.0+4033_daily_bin206> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Sat Sep  4 06:56:19 2021
Job was executed on host(s) <bullet0286>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 06:56:20 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:56:20 2021
Terminated at Sat Sep  4 07:11:53 2021
Results reported at Sat Sep  4 07:11:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1139.0+4033_daily_bin206 174.764 40.5617 292723201 292982401 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 :                                   917.08 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             349.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   933 sec.
    Turnaround time :                            934 sec.

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

