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


Performing analysis on: 4FGL_J1139.0+4033_daily_bin1147
RA = 174.764, Dec = 40.5617
tmin = 536630401, tmax = 536889601
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='989344', job_status='RUN', time_executed='2021-09-04 07:12:04.870624', time_epoch_executed='1630764724.87' WHERE source_name='4FGL J1139.0+4033' and cadence='daily' and bin_id='1147'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/989344

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/989344/ft1_4FGL_J1139.0+4033_daily_bin1147.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/989344/ft2_4FGL_J1139.0+4033_daily_bin1147.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/989344/ft1_4FGL_J1139.0+4033_daily_bin1147.fits outfile=/scratch/kocevski/989344/ft1_filteredMKT_4FGL_J1139.0+4033_daily_bin1147.fits ra=174.764 dec=40.5617 rad=12.0 tmin=536630401.0 tmax=536889601.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.56
user 3.37
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/989344/ft2_4FGL_J1139.0+4033_daily_bin1147.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/989344/ft1_filteredMKT_4FGL_J1139.0+4033_daily_bin1147.fits evtable="EVENTS" outfile="/scratch/kocevski/989344/ft1_filtered_4FGL_J1139.0+4033_daily_bin1147.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/989344/ft1_filtered_4FGL_J1139.0+4033_daily_bin1147.fits" evtable="EVENTS" scfile=/scratch/kocevski/989344/ft2_4FGL_J1139.0+4033_daily_bin1147.fits sctable="SC_DATA" outfile=/scratch/kocevski/989344/ltcube_536630401_536889601_4FGL_J1139.0+4033_daily_bin1147.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/989344/ft2_4FGL_J1139.0+4033_daily_bin1147.fits
.....................!
real 12.09
user 11.71
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/989344/ft1_filtered_4FGL_J1139.0+4033_daily_bin1147.fits evtable="EVENTS" scfile=/scratch/kocevski/989344/ft2_4FGL_J1139.0+4033_daily_bin1147.fits sctable="SC_DATA" expcube=/scratch/kocevski/989344/ltcube_536630401_536889601_4FGL_J1139.0+4033_daily_bin1147.fits outfile=/scratch/kocevski/989344/expmap_536630401_536889601_4FGL_J1139.0+4033_daily_bin1147.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/989344/ltcube_536630401_536889601_4FGL_J1139.0+4033_daily_bin1147.fits
.....................!
real 190.62
user 185.36
sys 4.93

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/989344/ft1_filtered_4FGL_J1139.0+4033_daily_bin1147.fits scfile=/scratch/kocevski/989344/ft2_4FGL_J1139.0+4033_daily_bin1147.fits outfile=/scratch/kocevski/989344/cmap_536630401_536889601_4FGL_J1139.0+4033_daily_bin1147.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/989344/ft1_filtered_4FGL_J1139.0+4033_daily_bin1147.fits scfile=/scratch/kocevski/989344/ft2_4FGL_J1139.0+4033_daily_bin1147.fits outfile=/scratch/kocevski/989344/cmap_HighResolution_536630401_536889601_4FGL_J1139.0+4033_daily_bin1147.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.5052       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11479E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.390       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10197E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .34223E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.5425       1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.790       1.0000         .10000E-03   10000.    
    11 'Prefactor '    30.999       1.0000         .10000E-03   10000.    
    12 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    17.060       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    81.062       1.0000         .10000E-03   10000.    
    16 'norm      '    1.0361       1.0000         .10000E-03   10000.    
    17 'norm      '    6.0244       1.0000         .10000E-03   10000.    
    18 'Prefactor '    39.261       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.6391       1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.606       1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.915       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10236E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.3984       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .88241       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0343       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=   7073.019     FROM MIGRAD    STATUS=CONVERGED    579 CALLS     2912 TOTAL
                     EDM=   .42E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.9839       -.26334E-07** at limit **
   2  Prefactor     .10000E-03    106.48       -.83134E-06** at limit **
   3  norm          1.5052        .38012        .60431E-08    .20470E-03
   4  Prefactor     .10000E-03    37.834       -.19184E-06** at limit **
   5  Prefactor     20.383        20.125       -.76990E-07    .20642E-04
   6  Prefactor     .10000E-03    36.286        .73737E-06** at limit **
   7  norm          .10000E-03    5.4075        .25180E-07** at limit **
   8  norm          .10000E-03    237.49       -.13817E-04** at limit **
   9  Prefactor     2.5422        2.3306       -.13649E-06    .27889E-03
  10  Prefactor     22.809        28.817       -.10449E-05   -.21349E-05
  11  Prefactor     30.994        22.619        .18811E-07    .25001E-04
  12  norm          .10000E-03    1.7113       -.49132E-06** at limit **
  13  Prefactor     17.056        15.974       -.10234E-06    .23908E-04
  14  Prefactor     .10000E-03    2.2159       -.25019E-06** at limit **
  15  Prefactor     81.063        47.809        .14017E-05    .69221E-04
  16  norm          1.0352        .97470       -.45855E-06   -.16299E-05
  17  norm          6.0251        7.0289       -.20594E-06   -.11870E-04
  18  Prefactor     39.270        31.733       -.84353E-06    .15981E-04
  19  Prefactor     1.6398        2.3735       -.49930E-06    .46986E-04
  20  Prefactor     13.617        34.669       -.11914E-05   -.10349E-04
  21  Prefactor     10.919        20.732        .16612E-06    .39562E-04
  22  Prefactor     .10000E-03    34.786       -.14916E-05** at limit **
  23  Prefactor     6.3997        6.9406       -.39974E-06    .64433E-04
  24  Normalizat    .88253        .16774        .82970E-06    .12276E-03
  25  Prefactor     1.0342        .18967       -.32535E-07    .14222E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.50517
  Prefactor  = 0.0001
  Prefactor  = 20.3834
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.54224
  Prefactor  = 22.8094
  Prefactor  = 30.9943
  norm       = 0.0001
  Prefactor  = 17.0564
  Prefactor  = 0.0001
  Prefactor  = 81.0625
  norm       = 1.03515
  norm       = 6.02505
  Prefactor  = 39.2699
  Prefactor  = 1.63978
  Prefactor  = 13.6168
  Prefactor  = 10.9189
  Prefactor  = 0.0001
  Prefactor  = 6.39974
  Normalizat = 0.882527
  Prefactor  = 1.03418
 **********
 **   18 **HESSE 
 **********

 FCN=   7073.019     FROM HESSE     STATUS=OK           433 CALLS     3345 TOTAL
                     EDM=   .72E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.9855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    106.78        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.5052        .38562        .23240E-04   -1.5463    
   4  Prefactor     .10000E-03    38.616        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     20.383        20.371        .88701E-04   -1.4805    
   6  Prefactor     .10000E-03    36.305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    5.4204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    228.43        .89236E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.5422        2.3201        .11235E-03   -1.5389    
  10  Prefactor     22.809        28.953        .83906E-04   -1.4752    
  11  Prefactor     30.994        22.600        .71964E-04   -1.4594    
  12  norm          .10000E-03    1.7514        .21268E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     17.056        15.959        .96969E-04   -1.4882    
  14  Prefactor     .10000E-03    2.2255        .12205E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     81.063        48.147        .44609E-04   -1.3905    
  16  norm          1.0352        .96502        .71872E-04   -1.5504    
  17  norm          6.0251        7.0286        .16359E-03   -1.5217    
  18  Prefactor     39.270        31.806        .63969E-04   -1.4454    
  19  Prefactor     1.6398        2.3289        .13902E-03   -1.5452    
  20  Prefactor     13.617        34.695        .10859E-03   -1.4970    
  21  Prefactor     10.919        20.479        .12127E-03   -1.5047    
  22  Prefactor     .10000E-03    34.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     6.3997        6.9358        .15867E-03   -1.5202    
  24  Normalizat    .88253        .19806        .25788E-03   -.97077    
  25  Prefactor     1.0342        .22367        .28539E-03   -.91599    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.17438e-11
Minuit parameter uncertainties:
  1  3.20863e-06
  2  0.000192536
  3  0.385617
  4  2.49708e-05
  5  20.3781
  6  2.77839e-05
  7  2.07643e-07
  8  0.000390782
  9  2.32022
  10  28.9706
  11  22.6064
  12  1.28926e-05
  13  15.9629
  14  4.96298e-06
  15  48.1701
  16  0.965038
  17  7.02956
  18  31.8199
  19  2.32901
  20  34.7461
  21  20.4923
  22  5.30768e-05
  23  6.93669
  24  0.198219
  25  0.223875
Done.

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

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  8.106e+01  4.817e+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.034e+00  2.239e-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:  8.825e-01  1.982e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.52
Ra Dec: 174.764 40.562
Photon Index (Fixed Index): 2.72 +/- 0.00
Photon Flux (Fixed Index): 8.60e-08 +/- 5.11e-08
Energy Flux (Fixed Index): 2.04e-05 +/- 1.21e-05

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7072.09651017
delta logL = 0.92283795403

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7072.04774194
delta logL = 0.971606187773

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    45.080       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5785       1.0000          .0000       10.000    
     3 'Normalizat'    .95258       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99663       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=   7072.048     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      209 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     45.080        39.937        .14929E-02    .89625E-03
   2  Index         1.5783        .38051        .20129       -.83464E-04
   3  Normalizat    .95257        .16078        .45570E-01    .14443E-04
   4  Prefactor     .99655        .19155        .46225E-01    .16028E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 45.0798
  Index      = 1.57829
  Normalizat = 0.952574
  Prefactor  = 0.996553
 **********
 **   18 **HESSE 
 **********

 FCN=   7072.048     FROM HESSE     STATUS=OK            31 CALLS      240 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     45.080        90.180        .59714E-04   -1.4364    
   2  Index         1.5783        .97297        .78076E-02   -.75370    
   3  Normalizat    .95257        .18673        .24961E-03   -.94637    
   4  Prefactor     .99655        .22118        .29044E-03   -.92845    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.73533e-09
Minuit parameter uncertainties:
  1  90.4545
  2  0.984909
  3  0.186856
  4  0.221383
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/989344': 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) = 7072.04774148
delta logL = 0.971606640941

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
693    Prefactor:  9.966e-01  2.214e-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:  9.526e-01  1.869e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.30
Ra Dec: 174.764 40.562
Photon Index (Free Index): 1.58 +/- 0.98
Photon Flux (Free Index): 1.57e-08 +/- 3.60e-08
Energy Flux (Free Index): 3.82e-05 +/- 5.32e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/989344/cmap_HighResolution_536630401_536889601_4FGL_J1139.0+4033_daily_bin1147.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.60e-08', energy_flux2='3.82e-05', photon_flux_error='5.11e-08', dlogl='9.72e-01', energy_flux='2.04e-05', photon_flux2='1.57e-08', job_status='DONE', time_completed='2021-09-04 07:24:45.560588', photon_index_error2='0.98', photon_index2='1.58', ts='5.52', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='5.32e-05', EG='0.88', time_epoch_completed='1630765485.56', return_code='0', job_id='989344', GAL2='1.00', EG2='0.95', return_code2='0', energy_flux_error='1.21e-05', photon_flux_error2='3.60e-08', ts2='7.30', photon_index='2.72' WHERE bin_id='1147' AND source_name='4FGL J1139.0+4033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 07:24:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0297>
Subject: Job 989344: <4FGL_J1139.0+4033_daily_bin1147> in cluster <slac> Done

Job <4FGL_J1139.0+4033_daily_bin1147> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 07:11:29 2021
Job was executed on host(s) <bullet0297>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 07:11:31 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:11:31 2021
Terminated at Sat Sep  4 07:24:46 2021
Results reported at Sat Sep  4 07:24:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1139.0+4033_daily_bin1147 174.764 40.5617 536630401 536889601 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 :                                   753.13 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             333.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   795 sec.
    Turnaround time :                            797 sec.

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

