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


Performing analysis on: 4FGL_J1139.0+4033_daily_bin841
RA = 174.764, Dec = 40.5617
tmin = 457315201, tmax = 457574401
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='987542', job_status='RUN', time_executed='2021-09-04 07:06:45.803262', time_epoch_executed='1630764405.8' WHERE source_name='4FGL J1139.0+4033' and cadence='daily' and bin_id='841'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/987542

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/987542/ft1_4FGL_J1139.0+4033_daily_bin841.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/987542/ft2_4FGL_J1139.0+4033_daily_bin841.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/987542/ft1_4FGL_J1139.0+4033_daily_bin841.fits outfile=/scratch/kocevski/987542/ft1_filteredMKT_4FGL_J1139.0+4033_daily_bin841.fits ra=174.764 dec=40.5617 rad=12.0 tmin=457315201.0 tmax=457574401.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 6.10
user 4.70
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/987542/ft2_4FGL_J1139.0+4033_daily_bin841.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/987542/ft1_filteredMKT_4FGL_J1139.0+4033_daily_bin841.fits evtable="EVENTS" outfile="/scratch/kocevski/987542/ft1_filtered_4FGL_J1139.0+4033_daily_bin841.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.49
user 0.35
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/987542/ft1_filtered_4FGL_J1139.0+4033_daily_bin841.fits" evtable="EVENTS" scfile=/scratch/kocevski/987542/ft2_4FGL_J1139.0+4033_daily_bin841.fits sctable="SC_DATA" outfile=/scratch/kocevski/987542/ltcube_457315201_457574401_4FGL_J1139.0+4033_daily_bin841.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/987542/ft2_4FGL_J1139.0+4033_daily_bin841.fits
.....................!
real 11.75
user 11.34
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/987542/ft1_filtered_4FGL_J1139.0+4033_daily_bin841.fits evtable="EVENTS" scfile=/scratch/kocevski/987542/ft2_4FGL_J1139.0+4033_daily_bin841.fits sctable="SC_DATA" expcube=/scratch/kocevski/987542/ltcube_457315201_457574401_4FGL_J1139.0+4033_daily_bin841.fits outfile=/scratch/kocevski/987542/expmap_457315201_457574401_4FGL_J1139.0+4033_daily_bin841.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/987542/ltcube_457315201_457574401_4FGL_J1139.0+4033_daily_bin841.fits
.....................!
real 190.74
user 186.46
sys 3.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/987542/ft1_filtered_4FGL_J1139.0+4033_daily_bin841.fits scfile=/scratch/kocevski/987542/ft2_4FGL_J1139.0+4033_daily_bin841.fits outfile=/scratch/kocevski/987542/cmap_457315201_457574401_4FGL_J1139.0+4033_daily_bin841.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.56
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/987542/ft1_filtered_4FGL_J1139.0+4033_daily_bin841.fits scfile=/scratch/kocevski/987542/ft2_4FGL_J1139.0+4033_daily_bin841.fits outfile=/scratch/kocevski/987542/cmap_HighResolution_457315201_457574401_4FGL_J1139.0+4033_daily_bin841.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.56
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.9135       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.8830       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    13.682       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .98987       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .97816       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    21.143       1.0000         .10000E-03   10000.    
    16 'norm      '    .11212E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    11.824       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .97694       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    53.646       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10514E-02   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1789       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .69870       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=   6714.486     FROM MIGRAD    STATUS=CONVERGED    583 CALLS     2972 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.308        .77612E-07** at limit **
   2  Prefactor     .10000E-03    87.063       -.26299E-06** at limit **
   3  norm          1.9135        .35301       -.49747E-08    .95761E-04
   4  Prefactor     7.8834        7.9509       -.53805E-07    .24571E-05
   5  Prefactor     .10000E-03    5.6612       -.61613E-08** at limit **
   6  Prefactor     .10000E-03    56.299        .38282E-06** at limit **
   7  norm          13.682        10.902        .16848E-08    .93793E-05
   8  norm          .10000E-03    15.597        .97027E-07** at limit **
   9  Prefactor     .98803        1.7167        .32045E-06    .59943E-03
  10  Prefactor     .10000E-03    13.733       -.21121E-06** at limit **
  11  Prefactor     .10000E-03    18.195        .59000E-06** at limit **
  12  norm          .98013        2.1589       -.97676E-07    .12668E-03
  13  Prefactor     .10000E-03    9.4829        .23876E-06** at limit **
  14  Prefactor     .10000E-03    1.5998        .48716E-08** at limit **
  15  Prefactor     21.099        29.545        .26935E-05    .25716E-03
  16  norm          .10000E-03    .72713       -.81612E-06** at limit **
  17  norm          11.821        8.2817        .19340E-06    .21400E-03
  18  Prefactor     .10000E-03    9.4378        .10690E-06** at limit **
  19  Prefactor     .97725        2.2845        .63297E-06    .22212E-03
  20  Prefactor     .10000E-03    22.838       -.41133E-06** at limit **
  21  Prefactor     .10000E-03    6.1165       -.62819E-07** at limit **
  22  Prefactor     53.657        35.134       -.25975E-06    .69461E-04
  23  Prefactor     .10003E-03    6.7333       -.55787E-06** at limit **
  24  Normalizat    1.1789        .15957        .63507E-06    .40122E-03
  25  Prefactor     .69868        .18544       -.65826E-06    .24900E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.91348
  Prefactor  = 7.8834
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.6824
  norm       = 0.0001
  Prefactor  = 0.988026
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.980126
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.0988
  norm       = 0.000100001
  norm       = 11.8211
  Prefactor  = 0.0001
  Prefactor  = 0.977253
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 53.6573
  Prefactor  = 0.000100033
  Normalizat = 1.1789
  Prefactor  = 0.698676
 **********
 **   18 **HESSE 
 **********

 FCN=   6714.486     FROM HESSE     STATUS=OK           423 CALLS     3395 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    87.259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.9135        .35344        .20088E-04   -1.5431    
   4  Prefactor     7.8834        7.9540        .14281E-03   -1.5146    
   5  Prefactor     .10000E-03    5.6734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    56.233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          13.682        10.881        .10829E-03   -1.4968    
   8  norm          .10000E-03    15.586        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .98803        1.4817        .13283E-02   -1.5509    
  10  Prefactor     .10000E-03    13.703        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    18.327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .98013        2.0611        .15960E-03   -1.5510    
  13  Prefactor     .10000E-03    9.5882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.6096        .10115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     21.099        30.667        .87108E-04   -1.4789    
  16  norm          .10000E-03    1.1939        .10783E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          11.821        8.2932        .11650E-03   -1.5020    
  18  Prefactor     .10000E-03    9.4473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .97725        2.2218        .18018E-03   -1.5510    
  20  Prefactor     .10000E-03    22.798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    6.1254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     53.657        34.887        .54762E-04   -1.4242    
  23  Prefactor     .10003E-03    56.036        .39844E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1789        .18174        .20963E-03   -.87257    
  25  Prefactor     .69868        .21182        .31754E-03   -1.0358    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.83085e-09
Minuit parameter uncertainties:
  1  2.1027e-05
  2  0.000241292
  3  0.353437
  4  7.9551
  5  1.24552e-06
  6  0.000229934
  7  10.8828
  8  3.5835e-05
  9  1.48172
  10  7.24812e-05
  11  9.37843e-05
  12  2.06122
  13  7.88024e-06
  14  2.07455e-06
  15  30.6901
  16  6.98421e-05
  17  8.29403
  18  9.04128e-06
  19  2.22198
  20  0.00010197
  21  1.04199e-05
  22  34.9001
  23  0.00272608
  24  0.181834
  25  0.212061
Done.

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

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  2.110e+01  3.069e+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:  6.987e-01  2.121e-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.179e+00  1.818e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/987542/likelihoodResults_457315201_457574401_4FGL_J1139.0+4033_daily_bin841.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) = 6714.43211843
delta logL = 0.0535276829542

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6714.41286949
delta logL = 0.0727766209511

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.319       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1366       1.0000          .0000       10.000    
     3 'Normalizat'    1.1702       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70540       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=   6714.413     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      210 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.319        543.23        .25583E-02    .47744E-03
   2  Index         3.1365        6.5618        .21811        .81980E-04
   3  Normalizat    1.1702        .43197E-01    .35668E-01    .30622E-05
   4  Prefactor     .70541        .50909E-01    .71435E-01    .25598E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.3189
  Index      = 3.13649
  Normalizat = 1.17017
  Prefactor  = 0.705415
 **********
 **   18 **HESSE 
 **********

 FCN=   6714.413     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.319        33.043        .51166E-03   -1.4925    
   2  Index         3.1365        1.3247        .91001E-02   -.38192    
   3  Normalizat    1.1702        .17931        .21028E-03   -.87530    
   4  Prefactor     .70541        .21168        .31615E-03   -1.0332    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.42322e-11
Minuit parameter uncertainties:
  1  33.0827
  2  1.34343
  3  0.179402
  4  0.211926
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/987542': 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) = 6714.41286946
delta logL = 0.0727766494265

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  1.532e+01  3.308e+01  1.000e-04  1.000e+04 ( 1.000e-13)
342        Index:  3.136e+00  1.343e+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:  7.054e-01  2.119e-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.170e+00  1.794e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.60
Ra Dec: 174.764 40.562

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/987542/cmap_HighResolution_457315201_457574401_4FGL_J1139.0+4033_daily_bin841.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.36e-03', job_status='DONE', photon_flux_upper_limit='9.34e-08', time_completed='2021-09-04 07:21:20.718557', job_id='987542', GAL2='0.71', fit_tolerance='1e-08', EG2='1.17', EG='1.18', time_epoch_completed='1630765280.72', return_code2='0', ts='0.60', comment='SUCCESS', return_code='0', GAL='0.70', dlogl='7.28e-02', ts2='0.75', photon_index_error='0.00', photon_index='2.72' WHERE bin_id='841' AND source_name='4FGL J1139.0+4033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 07:21:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0291>
Subject: Job 987542: <4FGL_J1139.0+4033_daily_bin841> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1139.0+4033_daily_bin841 174.764 40.5617 457315201 457574401 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 :                                   865.37 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             332.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   886 sec.
    Turnaround time :                            887 sec.

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

