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


Performing analysis on: 4FGL_J1139.0+4033_daily_bin1040
RA = 174.764, Dec = 40.5617
tmin = 508896001, tmax = 509155201
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='987846', job_status='RUN', time_executed='2021-09-04 07:09:22.297664', time_epoch_executed='1630764562.3' WHERE source_name='4FGL J1139.0+4033' and cadence='daily' and bin_id='1040'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/987846

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/987846/ft1_4FGL_J1139.0+4033_daily_bin1040.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/987846/ft2_4FGL_J1139.0+4033_daily_bin1040.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/987846/ft1_4FGL_J1139.0+4033_daily_bin1040.fits outfile=/scratch/kocevski/987846/ft1_filteredMKT_4FGL_J1139.0+4033_daily_bin1040.fits ra=174.764 dec=40.5617 rad=12.0 tmin=508896001.0 tmax=509155201.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.72
user 3.43
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/987846/ft1_filtered_4FGL_J1139.0+4033_daily_bin1040.fits" evtable="EVENTS" scfile=/scratch/kocevski/987846/ft2_4FGL_J1139.0+4033_daily_bin1040.fits sctable="SC_DATA" outfile=/scratch/kocevski/987846/ltcube_508896001_509155201_4FGL_J1139.0+4033_daily_bin1040.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/987846/ft2_4FGL_J1139.0+4033_daily_bin1040.fits
.....................!
real 12.50
user 11.72
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/987846/ft1_filtered_4FGL_J1139.0+4033_daily_bin1040.fits evtable="EVENTS" scfile=/scratch/kocevski/987846/ft2_4FGL_J1139.0+4033_daily_bin1040.fits sctable="SC_DATA" expcube=/scratch/kocevski/987846/ltcube_508896001_509155201_4FGL_J1139.0+4033_daily_bin1040.fits outfile=/scratch/kocevski/987846/expmap_508896001_509155201_4FGL_J1139.0+4033_daily_bin1040.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/987846/ltcube_508896001_509155201_4FGL_J1139.0+4033_daily_bin1040.fits
.....................!
real 192.57
user 184.91
sys 4.59

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/987846/ft1_filtered_4FGL_J1139.0+4033_daily_bin1040.fits scfile=/scratch/kocevski/987846/ft2_4FGL_J1139.0+4033_daily_bin1040.fits outfile=/scratch/kocevski/987846/cmap_508896001_509155201_4FGL_J1139.0+4033_daily_bin1040.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.58
user 0.37
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .59695E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    32.633       1.0000         .10000E-03   10000.    
     3 'norm      '    2.6509       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.6952       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    52.487       1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    48.626       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.3753       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.6435       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    165.43       1.0000         .10000E-03   10000.    
    16 'norm      '    .21305       1.0000         .10000E-03   10000.    
    17 'norm      '    .10081E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.3858       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.0183       1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.563       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.0714       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .22474E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2825       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .79608       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=   6543.237     FROM MIGRAD    STATUS=CONVERGED   1060 CALLS     3894 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11265E-03    22.753        .13586    ** at limit **
   2  Prefactor     32.621        63.556        .70144E-04   -.41492E-04
   3  norm          2.6508        .47240        .21819E-04    .37098E-03
   4  Prefactor     3.6823        13.724        .21010E-03    .59848E-04
   5  Prefactor     .10000E-03    12.270        .18142E-02** at limit **
   6  Prefactor     52.493        64.434        .55360E-04    .32858E-06
   7  norm          .10000E-03    3.8369        .15469E-02** at limit **
   8  norm          48.621        49.854        .28753E-03   -.38717E-04
   9  Prefactor     1.3753        2.3151        .15401E-03    .72343E-04
  10  Prefactor     .10000E-03    17.230        .18142E-02** at limit **
  11  Prefactor     .10000E-03    10.829        .18142E-02** at limit **
  12  norm          .10000E-03    1.2005        .85998E-03** at limit **
  13  Prefactor     4.6404        10.929        .18677E-03    .21548E-03
  14  Prefactor     .10000E-03    2.3052        .11934E-02** at limit **
  15  Prefactor     165.38        71.122        .15680E-03   -.21336E-03
  16  norm          .21340        2.3997        .13783E-02    .98580E-03
  17  norm          .10000E-03    10.220        .18142E-02** at limit **
  18  Prefactor     4.3940        24.791        .19232E-03    .40789E-04
  19  Prefactor     1.0114        3.9021        .26686E-03   -.26195E-03
  20  Prefactor     13.549        83.703        .10876E-03   -.58537E-05
  21  Prefactor     9.0908        18.860        .13307E-03   -.87910E-04
  22  Prefactor     .10352E-03    29.102        .12169    ** at limit **
  23  Prefactor     .10000E-03    2.6222        .12768E-02** at limit **
  24  Normalizat    1.2826        .22326        .23771E-03   -.15045E-03
  25  Prefactor     .79618        .24663        .33729E-03    .44761E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000112645
  Prefactor  = 32.6207
  norm       = 2.65082
  Prefactor  = 3.68233
  Prefactor  = 0.0001
  Prefactor  = 52.4931
  norm       = 0.0001
  norm       = 48.6213
  Prefactor  = 1.37533
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.64043
  Prefactor  = 0.0001
  Prefactor  = 165.383
  norm       = 0.213401
  norm       = 0.0001
  Prefactor  = 4.39404
  Prefactor  = 1.01145
  Prefactor  = 13.5489
  Prefactor  = 9.09078
  Prefactor  = 0.000103521
  Prefactor  = 0.0001
  Normalizat = 1.28261
  Prefactor  = 0.79618
 **********
 **   18 **HESSE 
 **********

 FCN=   6543.237     FROM HESSE     STATUS=OK           423 CALLS     4317 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11265E-03    22.650        .13650       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     32.621        63.557        .14029E-04   -1.4565    
   3  norm          2.6508        .47234        .87276E-06   -1.5382    
   4  Prefactor     3.6823        13.722        .84038E-05   -1.5324    
   5  Prefactor     .10000E-03    12.271        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     52.493        64.434        .11072E-04   -1.4258    
   7  norm          .10000E-03    3.8369        .30938E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          48.621        49.854        .57505E-04   -1.4312    
   9  Prefactor     1.3753        2.3148        .61603E-05   -1.5473    
  10  Prefactor     .10000E-03    17.230        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.830        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.2006        .17200E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.6404        10.929        .74707E-05   -1.5277    
  14  Prefactor     .10000E-03    2.3055        .23867E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     165.38        69.902        .31361E-04   -1.3129    
  16  norm          .21340        2.2372        .55134E-04   -1.5616    
  17  norm          .10000E-03    10.227        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.3940        24.788        .76926E-05   -1.5289    
  19  Prefactor     1.0114        3.8961        .10675E-04   -1.5507    
  20  Prefactor     13.549        81.006        .43504E-05   -1.4972    
  21  Prefactor     9.0908        18.839        .53229E-05   -1.5105    
  22  Prefactor     .10352E-03    28.592        .12327       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.6223        .25537E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2826        .22344        .47541E-04   -.84087    
  25  Prefactor     .79618        .24680        .13492E-04   -.99869    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.12582e-09
Minuit parameter uncertainties:
  1  0.0338602
  2  63.6889
  3  0.472339
  4  13.7336
  5  5.15475e-05
  6  64.5199
  7  1.08207e-05
  8  49.8966
  9  2.31493
  10  2.82675e-05
  11  9.46783e-05
  12  3.76178e-06
  13  10.9337
  14  1.22947e-05
  15  69.9371
  16  1.38166
  17  4.30313e-06
  18  20.8857
  19  3.89712
  20  66.393
  21  18.8514
  22  0.0200773
  23  1.72715e-06
  24  0.223609
  25  0.247141
Done.

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

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  1.654e+02  6.994e+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:  7.962e-01  2.471e-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.283e+00  2.236e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.59
Ra Dec: 174.764 40.562
Photon Index (Fixed Index): 2.72 +/- 0.00
Photon Flux (Fixed Index): 1.75e-07 +/- 7.41e-08
Energy Flux (Fixed Index): 4.16e-05 +/- 1.76e-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) = 6542.5402921
delta logL = 0.696654935566

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6542.53692183
delta logL = 0.700025202925

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    93.641       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3009       1.0000          .0000       10.000    
     3 'Normalizat'    1.2158       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85770       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=   6542.537     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      292 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     93.636        86.153        .41531E-04   -.62083E-04
   2  Index         3.3009        .66029        .36732E-02   -.44272E-04
   3  Normalizat    1.2158        .22620        .24288E-03   -.11831E-03
   4  Prefactor     .85779        .25385        .32646E-03   -.37122E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 93.6356
  Index      = 3.30089
  Normalizat = 1.21577
  Prefactor  = 0.857787
 **********
 **   18 **HESSE 
 **********

 FCN=   6542.537     FROM HESSE     STATUS=OK            25 CALLS      317 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     93.636        73.700        .83063E-05   -1.3770    
   2  Index         3.3009        .56456        .14693E-03   -.34673    
   3  Normalizat    1.2158        .22532        .48575E-04   -.86117    
   4  Prefactor     .85779        .25249        .13058E-04   -.97632    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.4462e-11
Minuit parameter uncertainties:
  1  73.7718
  2  0.56592
  3  0.225501
  4  0.252836
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/987846': 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) = 6542.53692172
delta logL = 0.700025318052

Extracting fit parameters...

4FGL J1139.0+4033
   Spectrum: PowerLaw
341    Prefactor:  9.364e+01  7.377e+01  1.000e-04  1.000e+04 ( 1.000e-13)
342        Index:  3.301e+00  5.659e-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:  8.578e-01  2.528e-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.216e+00  2.255e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.24
Ra Dec: 174.764 40.562
Photon Index (Free Index): 3.30 +/- 0.57
Photon Flux (Free Index): 2.26e-07 +/- 8.42e-08
Energy Flux (Free Index): 3.99e-05 +/- 1.41e-05

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/987846/cmap_HighResolution_508896001_509155201_4FGL_J1139.0+4033_daily_bin1040.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.75e-07', energy_flux2='3.99e-05', photon_flux_error='7.41e-08', dlogl='7.00e-01', energy_flux='4.16e-05', photon_flux2='2.26e-07', job_status='DONE', time_completed='2021-09-04 07:23:23.887777', photon_index_error2='0.57', photon_index2='3.30', ts='11.59', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', energy_flux_error2='1.41e-05', EG='1.28', time_epoch_completed='1630765403.89', return_code='0', job_id='987846', GAL2='0.86', EG2='1.22', return_code2='0', energy_flux_error='1.76e-05', photon_flux_error2='8.42e-08', ts2='13.24', photon_index='2.72' WHERE bin_id='1040' AND source_name='4FGL J1139.0+4033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 07:23:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 987846: <4FGL_J1139.0+4033_daily_bin1040> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1139.0+4033_daily_bin1040 174.764 40.5617 508896001 509155201 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 :                                   833.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             266.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   981 sec.
    Turnaround time :                            983 sec.

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

