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


Performing analysis on: 4FGL_J1139.0+4033_daily_bin23
RA = 174.764, Dec = 40.5617
tmin = 245289601, tmax = 245548801
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='978719', job_status='RUN', time_executed='2021-09-04 06:44:02.113322', time_epoch_executed='1630763042.11' WHERE source_name='4FGL J1139.0+4033' and cadence='daily' and bin_id='23'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/978719

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/978719/ft1_4FGL_J1139.0+4033_daily_bin23.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/978719/ft2_4FGL_J1139.0+4033_daily_bin23.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/978719/ft1_4FGL_J1139.0+4033_daily_bin23.fits outfile=/scratch/kocevski/978719/ft1_filteredMKT_4FGL_J1139.0+4033_daily_bin23.fits ra=174.764 dec=40.5617 rad=12.0 tmin=245289601.0 tmax=245548801.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 1.49
user 1.30
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/978719/ft1_filtered_4FGL_J1139.0+4033_daily_bin23.fits" evtable="EVENTS" scfile=/scratch/kocevski/978719/ft2_4FGL_J1139.0+4033_daily_bin23.fits sctable="SC_DATA" outfile=/scratch/kocevski/978719/ltcube_245289601_245548801_4FGL_J1139.0+4033_daily_bin23.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/978719/ft2_4FGL_J1139.0+4033_daily_bin23.fits
.....................!
real 14.56
user 14.14
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/978719/ft1_filtered_4FGL_J1139.0+4033_daily_bin23.fits evtable="EVENTS" scfile=/scratch/kocevski/978719/ft2_4FGL_J1139.0+4033_daily_bin23.fits sctable="SC_DATA" expcube=/scratch/kocevski/978719/ltcube_245289601_245548801_4FGL_J1139.0+4033_daily_bin23.fits outfile=/scratch/kocevski/978719/expmap_245289601_245548801_4FGL_J1139.0+4033_daily_bin23.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/978719/ltcube_245289601_245548801_4FGL_J1139.0+4033_daily_bin23.fits
.....................!
real 192.99
user 187.14
sys 5.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/978719/ft1_filtered_4FGL_J1139.0+4033_daily_bin23.fits scfile=/scratch/kocevski/978719/ft2_4FGL_J1139.0+4033_daily_bin23.fits outfile=/scratch/kocevski/978719/cmap_245289601_245548801_4FGL_J1139.0+4033_daily_bin23.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/978719/ft1_filtered_4FGL_J1139.0+4033_daily_bin23.fits scfile=/scratch/kocevski/978719/ft2_4FGL_J1139.0+4033_daily_bin23.fits outfile=/scratch/kocevski/978719/cmap_HighResolution_245289601_245548801_4FGL_J1139.0+4033_daily_bin23.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.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10152E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.2109       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.3371       1.0000         .10000E-03   10000.    
     6 'Prefactor '    214.51       1.0000         .10000E-03   10000.    
     7 'norm      '    21.074       1.0000         .10000E-03   10000.    
     8 'norm      '    64.945       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10152E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    54.373       1.0000         .10000E-03   10000.    
    12 'norm      '    .13233E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .30496E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    30.117       1.0000         .10000E-03   10000.    
    16 'norm      '    .10073E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    12.233       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .39841E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .22977E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    17.405       1.0000         .10000E-03   10000.    
    22 'Prefactor '    21.410       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.6942       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .71063       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2334       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=   5400.072     FROM MIGRAD    STATUS=CONVERGED   1089 CALLS     3491 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.589        .18142E-02** at limit **
   2  Prefactor     .10000E-03    104.89        .18142E-02** at limit **
   3  norm          1.2109        .33277        .20824E-04    .12011E-03
   4  Prefactor     .10000E-03    8.6213        .18142E-02** at limit **
   5  Prefactor     9.3376        13.182        .13115E-03    .90149E-05
   6  Prefactor     214.53        133.72        .13804E-03    .68355E-05
   7  norm          21.077        15.656        .87251E-04    .67625E-04
   8  norm          64.945        66.876        .49798E-04    .95884E-06
   9  Prefactor     .10000E-03    1.6056        .17773E-03** at limit **
  10  Prefactor     .10000E-03    76.584        .18142E-02** at limit **
  11  Prefactor     54.356        23.611        .54397E-04    .12126E-03
  12  norm          .10189E-03    2.9136        .26077E-01** at limit **
  13  Prefactor     .10000E-03    9.9313        .18142E-02** at limit **
  14  Prefactor     .10061E-03    7.2223        .39683E-01** at limit **
  15  Prefactor     30.156        35.276        .73008E-04   -.33947E-04
  16  norm          .10000E-03    .67096        .95296E-03** at limit **
  17  norm          12.235        9.8572        .11453E-03    .21540E-04
  18  Prefactor     .10002E-03    199.44        .68537E-02** at limit **
  19  Prefactor     .10046E-03    4.3917        .34333E-01** at limit **
  20  Prefactor     .10000E-03    27.409        .18142E-02** at limit **
  21  Prefactor     17.417        29.514        .96002E-04    .14803E-04
  22  Prefactor     21.319        32.043        .86565E-04    .93902E-04
  23  Prefactor     3.6946        5.1020        .94726E-03    .33929E-04
  24  Normalizat    .71034        .20384        .26501E-03    .18210E-03
  25  Prefactor     1.2336        .24060        .25560E-03    .12494E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.21091
  Prefactor  = 0.0001
  Prefactor  = 9.33759
  Prefactor  = 214.528
  norm       = 21.0768
  norm       = 64.9448
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 54.3562
  norm       = 0.000101892
  Prefactor  = 0.0001
  Prefactor  = 0.000100606
  Prefactor  = 30.1562
  norm       = 0.0001
  norm       = 12.2352
  Prefactor  = 0.000100015
  Prefactor  = 0.000100456
  Prefactor  = 0.0001
  Prefactor  = 17.4171
  Prefactor  = 21.3187
  Prefactor  = 3.69458
  Normalizat = 0.710337
  Prefactor  = 1.23359
 **********
 **   18 **HESSE 
 **********

 FCN=   5400.072     FROM HESSE     STATUS=OK           433 CALLS     3924 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.589        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    104.90        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.2109        .33278        .83295E-06   -1.5488    
   4  Prefactor     .10000E-03    8.6227        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.3376        13.182        .52462E-05   -1.5097    
   6  Prefactor     214.53        133.71        .55218E-05   -1.2768    
   7  norm          21.077        15.658        .34900E-05   -1.4789    
   8  norm          64.945        66.878        .99597E-05   -1.4094    
   9  Prefactor     .10000E-03    1.6056        .35545E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    76.642        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     54.356        23.614        .10879E-04   -1.4232    
  12  norm          .10189E-03    2.1840        .31652E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.9322        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10061E-03    5.3251        .48318E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     30.156        35.278        .29203E-05   -1.4609    
  16  norm          .10000E-03    .67130        .19059E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          12.235        9.8573        .45812E-05   -1.5008    
  18  Prefactor     .10002E-03    205.42        .27415E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10046E-03    3.6816        .39189E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    27.410        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     17.417        29.527        .38401E-05   -1.4873    
  22  Prefactor     21.319        32.004        .34626E-05   -1.4784    
  23  Prefactor     3.6946        5.1013        .37890E-04   -1.5324    
  24  Normalizat    .71034        .20405        .10601E-04   -1.0349    
  25  Prefactor     1.2336        .24075        .51120E-04   -.85304    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15761e-09
Minuit parameter uncertainties:
  1  1.85617e-06
  2  0.000223448
  3  0.332781
  4  6.09025e-06
  5  13.1866
  6  133.904
  7  15.6615
  8  66.9559
  9  4.0222e-06
  10  0.00011785
  11  23.6177
  12  0.00406614
  13  1.07083e-05
  14  0.00359377
  15  35.3023
  16  3.01499e-06
  17  9.85862
  18  0.00356107
  19  0.00259154
  20  5.43925e-07
  21  29.5518
  22  32.0299
  23  5.10193
  24  0.204273
  25  0.240962
Done.

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

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  3.016e+01  3.530e+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.234e+00  2.410e-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.103e-01  2.043e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.09
Ra Dec: 174.764 40.562
Photon Index (Fixed Index): 2.72 +/- 0.00
Photon Flux (Fixed Index): 3.20e-08 +/- 3.74e-08
Energy Flux (Fixed Index): 7.58e-06 +/- 8.88e-06

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

Saving results to:
/scratch/kocevski/978719/likelihoodResults_245289601_245548801_4FGL_J1139.0+4033_daily_bin23.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) = 5400.04389544
delta logL = 0.0285741763546

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5400.02497233
delta logL = 0.0474972918446

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.390       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1003       1.0000          .0000       10.000    
     3 'Normalizat'    .69783       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2439       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=   5400.025     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      252 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.372        46.284        .84649E-04   -.37151E-03
   2  Index         3.1008        1.5415        .78303E-02   -.53174E-04
   3  Normalizat    .69780        .20006        .26746E-03    .74897E-04
   4  Prefactor     1.2439        .24269        .25472E-03   -.10596E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.372
  Index      = 3.10078
  Normalizat = 0.6978
  Prefactor  = 1.24391
 **********
 **   18 **HESSE 
 **********

 FCN=   5400.025     FROM HESSE     STATUS=OK            25 CALLS      277 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.372        39.087        .16930E-04   -1.4762    
   2  Index         3.1008        1.3061        .31321E-03   -.38963    
   3  Normalizat    .69780        .19939        .10698E-04   -1.0398    
   4  Prefactor     1.2439        .24201        .50944E-04   -.84991    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.03938e-10
Minuit parameter uncertainties:
  1  39.1317
  2  1.32416
  3  0.199597
  4  0.242229
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/978719': 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) = 5400.02497219
delta logL = 0.0474974248873

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  2.237e+01  3.913e+01  1.000e-04  1.000e+04 ( 1.000e-13)
342        Index:  3.101e+00  1.324e+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.244e+00  2.422e-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.978e-01  1.996e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.19
Ra Dec: 174.764 40.562
Photon Index (Free Index): 3.10 +/- 1.32
Photon Flux (Free Index): 4.03e-08 +/- 4.75e-08
Energy Flux (Free Index): 7.68e-06 +/- 8.17e-06

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/978719/cmap_HighResolution_245289601_245548801_4FGL_J1139.0+4033_daily_bin23.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.01e-03', comment='SUCCESS', photon_flux='3.20e-08', energy_flux2='7.68e-06', photon_flux_error='3.74e-08', dlogl='4.75e-02', energy_flux='7.58e-06', photon_flux2='4.03e-08', job_status='DONE', time_completed='2021-09-04 06:57:20.429905', photon_index_error2='1.32', photon_index2='3.10', ts='1.09', fit_tolerance='1e-08', GAL='1.23', photon_index_error='0.00', photon_flux_upper_limit='1.14e-07', energy_flux_error2='8.17e-06', EG='0.71', time_epoch_completed='1630763840.43', return_code='0', job_id='978719', GAL2='1.24', EG2='0.70', return_code2='0', energy_flux_error='8.88e-06', photon_flux_error2='4.75e-08', ts2='1.19', photon_index='2.72' WHERE bin_id='23' AND source_name='4FGL J1139.0+4033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 06:57:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0016>
Subject: Job 978719: <4FGL_J1139.0+4033_daily_bin23> in cluster <slac> Done

Job <4FGL_J1139.0+4033_daily_bin23> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 06:41:17 2021
Job was executed on host(s) <bullet0016>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 06:41:18 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:41:18 2021
Terminated at Sat Sep  4 06:57:21 2021
Results reported at Sat Sep  4 06:57:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1139.0+4033_daily_bin23 174.764 40.5617 245289601 245548801 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 :                                   796.25 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             286.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   962 sec.
    Turnaround time :                            964 sec.

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

