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


Performing analysis on: 4FGL_J1139.0+4033_daily_bin1012
RA = 174.764, Dec = 40.5617
tmin = 501638401, tmax = 501897601
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='987803', job_status='RUN', time_executed='2021-09-04 07:08:59.823364', time_epoch_executed='1630764539.82' WHERE source_name='4FGL J1139.0+4033' and cadence='daily' and bin_id='1012'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/987803

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/987803/ft1_4FGL_J1139.0+4033_daily_bin1012.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/987803/ft2_4FGL_J1139.0+4033_daily_bin1012.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/987803/ft1_4FGL_J1139.0+4033_daily_bin1012.fits outfile=/scratch/kocevski/987803/ft1_filteredMKT_4FGL_J1139.0+4033_daily_bin1012.fits ra=174.764 dec=40.5617 rad=12.0 tmin=501638401.0 tmax=501897601.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.64
user 3.32
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/987803/ft2_4FGL_J1139.0+4033_daily_bin1012.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/987803/ft1_filteredMKT_4FGL_J1139.0+4033_daily_bin1012.fits evtable="EVENTS" outfile="/scratch/kocevski/987803/ft1_filtered_4FGL_J1139.0+4033_daily_bin1012.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.59
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/987803/ft1_filtered_4FGL_J1139.0+4033_daily_bin1012.fits" evtable="EVENTS" scfile=/scratch/kocevski/987803/ft2_4FGL_J1139.0+4033_daily_bin1012.fits sctable="SC_DATA" outfile=/scratch/kocevski/987803/ltcube_501638401_501897601_4FGL_J1139.0+4033_daily_bin1012.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/987803/ft2_4FGL_J1139.0+4033_daily_bin1012.fits
.....................!
real 12.71
user 11.97
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/987803/ft1_filtered_4FGL_J1139.0+4033_daily_bin1012.fits evtable="EVENTS" scfile=/scratch/kocevski/987803/ft2_4FGL_J1139.0+4033_daily_bin1012.fits sctable="SC_DATA" expcube=/scratch/kocevski/987803/ltcube_501638401_501897601_4FGL_J1139.0+4033_daily_bin1012.fits outfile=/scratch/kocevski/987803/expmap_501638401_501897601_4FGL_J1139.0+4033_daily_bin1012.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/987803/ltcube_501638401_501897601_4FGL_J1139.0+4033_daily_bin1012.fits
.....................!
real 190.40
user 185.82
sys 4.09

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/987803/ft1_filtered_4FGL_J1139.0+4033_daily_bin1012.fits scfile=/scratch/kocevski/987803/ft2_4FGL_J1139.0+4033_daily_bin1012.fits outfile=/scratch/kocevski/987803/cmap_501638401_501897601_4FGL_J1139.0+4033_daily_bin1012.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/987803/ft1_filtered_4FGL_J1139.0+4033_daily_bin1012.fits scfile=/scratch/kocevski/987803/ft2_4FGL_J1139.0+4033_daily_bin1012.fits outfile=/scratch/kocevski/987803/cmap_HighResolution_501638401_501897601_4FGL_J1139.0+4033_daily_bin1012.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.53
user 0.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .75906E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .92034       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.8504       1.0000         .10000E-03   10000.    
     7 'norm      '    5.3791       1.0000         .10000E-03   10000.    
     8 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.5071       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10403E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .15995E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.370       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.4905       1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.194       1.0000         .10000E-03   10000.    
    16 'norm      '    .53317       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    25.176       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4041       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .54742       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=   6233.776     FROM MIGRAD    STATUS=CONVERGED    599 CALLS     3342 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    164.99       -.12458E-04** at limit **
   2  Prefactor     .10000E-03    66.848        .54446E-06** at limit **
   3  norm          .92030        .26442        .21636E-08   -.68886E-03
   4  Prefactor     .10000E-03    9.2767       -.55745E-09** at limit **
   5  Prefactor     .10000E-03    4.6211       -.12813E-08** at limit **
   6  Prefactor     4.9086        389.62        .18914E-04    .14419E-04
   7  norm          5.3787        8.0616       -.41418E-06   -.10232E-03
   8  norm          .10000E-03    27.384       -.96827E-06** at limit **
   9  Prefactor     1.5082        1.4611       -.23393E-06   -.11043E-02
  10  Prefactor     .10000E-03    39.169        .10254E-06** at limit **
  11  Prefactor     .10000E-03    4.4277        .28073E-07** at limit **
  12  norm          .10000E-03    1.7953        .12635E-05** at limit **
  13  Prefactor     14.370        9.7286       -.88729E-06   -.23430E-03
  14  Prefactor     4.4911        3.8027       -.67676E-07   -.27888E-03
  15  Prefactor     14.171        39.119       -.28158E-05   -.18629E-03
  16  norm          .53492        .78449       -.14125E-06   -.10708E-02
  17  norm          .10000E-03    2.9451        .19088E-06** at limit **
  18  Prefactor     .10000E-03    27.502        .25124E-07** at limit **
  19  Prefactor     .10000E-03    1.6049       -.17009E-07** at limit **
  20  Prefactor     .10000E-03    19.138        .14530E-05** at limit **
  21  Prefactor     .10000E-03    16.969       -.32124E-09** at limit **
  22  Prefactor     25.176        28.142        .49614E-06   -.24390E-05
  23  Prefactor     .10000E-03    6.7421        .64666E-07** at limit **
  24  Normalizat    1.4042        .16626       -.79607E-06   -.50416E-03
  25  Prefactor     .54731        .19402        .58819E-06   -.30142E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100015
  Prefactor  = 0.0001
  norm       = 0.920296
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.9086
  norm       = 5.37867
  norm       = 0.0001
  Prefactor  = 1.50825
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 14.3698
  Prefactor  = 4.49108
  Prefactor  = 14.1708
  norm       = 0.534916
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.1755
  Prefactor  = 0.0001
  Normalizat = 1.40423
  Prefactor  = 0.547306
 **********
 **   18 **HESSE 
 **********

 FCN=   6233.776     FROM HESSE     STATUS=OK           427 CALLS     3769 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    162.64        .59307E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    66.964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .92030        .26468        .21052E-04   -1.5516    
   4  Prefactor     .10000E-03    9.3625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.6260        .16575E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.9086        387.13        .18265E-03   -1.5265    
   7  norm          5.3787        8.0479        .17327E-03   -1.5244    
   8  norm          .10000E-03    27.430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.5082        1.4514        .90897E-04   -1.5462    
  10  Prefactor     .10000E-03    39.419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.4340        .16225E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.6169        .17342E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     14.370        9.7243        .52830E-03   -1.4950    
  14  Prefactor     4.4911        3.7981        .13613E-03   -1.5284    
  15  Prefactor     14.171        40.046        .10631E-03   -1.4955    
  16  norm          .53492        .78500        .84057E-03   -1.5562    
  17  norm          .10000E-03    2.9482        .13236E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    27.836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.6374        .97617E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    19.190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    17.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     25.176        28.153        .79837E-04   -1.4704    
  23  Prefactor     .10000E-03    6.8857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.4042        .19039        .19831E-03   -.80506    
  25  Prefactor     .54731        .21915        .35580E-03   -1.0985    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.82041e-09
Minuit parameter uncertainties:
  1  0.00315672
  2  5.73671e-05
  3  0.264683
  4  1.23463e-05
  5  1.23352e-06
  6  87.7783
  7  8.04955
  8  7.68409e-05
  9  1.45141
  10  3.40586e-05
  11  7.18786e-06
  12  0.000175971
  13  9.7254
  14  3.79833
  15  40.1223
  16  0.785018
  17  6.80672e-06
  18  3.57524e-05
  19  1.86682e-06
  20  9.45639e-05
  21  2.05558e-05
  22  28.1678
  23  6.33023e-06
  24  0.190487
  25  0.21949
Done.

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

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  1.417e+01  4.012e+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:  5.473e-01  2.195e-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.404e+00  1.905e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.17
Ra Dec: 174.764 40.562
Photon Flux Upper Limit: 1.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/987803/likelihoodResults_501638401_501897601_4FGL_J1139.0+4033_daily_bin1012.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) = 6233.7366889
delta logL = 0.0389946244868

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6233.72479856
delta logL = 0.0508849663347

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.1168       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2889       1.0000          .0000       10.000    
     3 'Normalizat'    1.3944       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .55574       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6233.725     FROM MIGRAD    STATUS=FAILED       104 CALLS      269 TOTAL
                     EDM=   .66E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.0494        107.72        .66369E-03   -.18568E-04
   2  Index         3.2934        3.5620        .12270E-01    .29469E-03
   3  Normalizat    1.3947        .19114        .19885E-03   -.42307E-04
   4  Prefactor     .55523        .22149        .35343E-03   -.13253E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6233.725     FROM SIMPLEX   STATUS=UNCHANGED     78 CALLS      347 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.0494        107.72        .43402E-03   -1.5106    
   2  Index         3.2934        3.5620        .22566E-02   -.34832    
   3  Normalizat    1.3947        .19114        .24600E-03   -.80781    
   4  Prefactor     .55523        .22149        .49391E-03   -1.0951    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6233.725     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      378 TOTAL
                     EDM=   .20E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.0493        33.429        .26548E-04   -.19785E-04
   2  Index         3.2934        2.0872        .24541E-02   -.29926E-05
   3  Normalizat    1.3947        .19130        .79542E-05   -.28871E-04
   4  Prefactor     .55523        .22028        .14137E-04   -.90068E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.04934
  Index      = 3.29339
  Normalizat = 1.39473
  Prefactor  = 0.555227
 **********
 **   18 **HESSE 
 **********

 FCN=   6233.725     FROM HESSE     STATUS=OK            23 CALLS      401 TOTAL
                     EDM=   .18E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.0493        31.513        .53095E-05   -1.5106    
   2  Index         3.2934        1.9738        .98163E-04   -.34832    
   3  Normalizat    1.3947        .19122        .15908E-05   -.80781    
   4  Prefactor     .55523        .22010        .28274E-05   -1.0951    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.81466e-12
Minuit parameter uncertainties:
  1  31.5713
  2  2.03693
  3  0.191321
  4  0.220444
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/987803': 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) = 6233.72479247
delta logL = 0.0508910603448

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  9.049e+00  3.157e+01  1.000e-04  1.000e+04 ( 1.000e-13)
342        Index:  3.293e+00  2.037e+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:  5.552e-01  2.204e-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.395e+00  1.913e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.17
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/987803/cmap_HighResolution_501638401_501897601_4FGL_J1139.0+4033_daily_bin1012.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.97e-03', job_status='DONE', photon_flux_upper_limit='1.01e-07', time_completed='2021-09-04 07:23:17.939393', job_id='987803', GAL2='0.56', fit_tolerance='1e-08', EG2='1.39', EG='1.40', time_epoch_completed='1630765397.94', return_code2='0', ts='0.17', comment='SUCCESS', return_code='0', GAL='0.55', dlogl='5.09e-02', ts2='0.27', photon_index_error='0.00', photon_index='2.72' WHERE bin_id='1012' AND source_name='4FGL J1139.0+4033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 07:23:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0197>
Subject: Job 987803: <4FGL_J1139.0+4033_daily_bin1012> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1139.0+4033_daily_bin1012 174.764 40.5617 501638401 501897601 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 :                                   853.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             301.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   980 sec.
    Turnaround time :                            983 sec.

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

