aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 61 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J0739.2+0137_daily_bin1710
RA = 114.82, Dec = 1.6216
tmin = 682560001, tmax = 682819201
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='54270', job_status='RUN', time_executed='2022-09-16 13:09:23.509293', time_epoch_executed='1663358963.51' WHERE source_name='4FGL J0739.2+0137' and cadence='daily' and bin_id='1710'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/54270

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/54270/ft1_4FGL_J0739.2+0137_daily_bin1710.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/54270/ft2_4FGL_J0739.2+0137_daily_bin1710.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/54270/ft1_4FGL_J0739.2+0137_daily_bin1710.fits outfile=/scratch/kocevski/54270/ft1_filteredMKT_4FGL_J0739.2+0137_daily_bin1710.fits ra=114.82 dec=1.6216 rad=12.0 tmin=682560001.0 tmax=682819201.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.68
user 3.44
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/54270/ft2_4FGL_J0739.2+0137_daily_bin1710.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/54270/ft2_4FGL_J0739.2+0137_daily_bin1710.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/54270/ft1_filteredMKT_4FGL_J0739.2+0137_daily_bin1710.fits evtable="EVENTS" outfile="/scratch/kocevski/54270/ft1_filtered_4FGL_J0739.2+0137_daily_bin1710.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.53
user 0.33
sys 0.18

Number of photons that the gtmktime cut: 1166

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/54270/ft1_filtered_4FGL_J0739.2+0137_daily_bin1710.fits" evtable="EVENTS" scfile=/scratch/kocevski/54270/ft2_4FGL_J0739.2+0137_daily_bin1710.fits sctable="SC_DATA" outfile=/scratch/kocevski/54270/ltcube_682560001_682819201_4FGL_J0739.2+0137_daily_bin1710.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/54270/ft2_4FGL_J0739.2+0137_daily_bin1710.fits
.....................!
real 14.30
user 13.95
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/54270/ft1_filtered_4FGL_J0739.2+0137_daily_bin1710.fits evtable="EVENTS" scfile=/scratch/kocevski/54270/ft2_4FGL_J0739.2+0137_daily_bin1710.fits sctable="SC_DATA" expcube=/scratch/kocevski/54270/ltcube_682560001_682819201_4FGL_J0739.2+0137_daily_bin1710.fits outfile=/scratch/kocevski/54270/expmap_682560001_682819201_4FGL_J0739.2+0137_daily_bin1710.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/54270/ltcube_682560001_682819201_4FGL_J0739.2+0137_daily_bin1710.fits
.....................!
real 193.40
user 187.94
sys 5.11

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
Extended source Rosette in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/Rosette.fits is the correct path to the extended template.
Extended source Monoceros in ROI with RadialGaussian spatial model.
Added 149 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0739.2+0137 @ 114.82 1.6216

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/54270/ft1_filtered_4FGL_J0739.2+0137_daily_bin1710.fits scfile=/scratch/kocevski/54270/ft2_4FGL_J0739.2+0137_daily_bin1710.fits outfile=/scratch/kocevski/54270/cmap_682560001_682819201_4FGL_J0739.2+0137_daily_bin1710.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=114.82 yref=1.6216 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.57
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/54270/ft1_filtered_4FGL_J0739.2+0137_daily_bin1710.fits scfile=/scratch/kocevski/54270/ft2_4FGL_J0739.2+0137_daily_bin1710.fits outfile=/scratch/kocevski/54270/cmap_HighResolution_682560001_682819201_4FGL_J0739.2+0137_daily_bin1710.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=114.82 yref=1.6216 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/54270/ft1_filtered_4FGL_J0739.2+0137_daily_bin1710.fits evtable="EVENTS" scfile=/scratch/kocevski/54270/ft2_4FGL_J0739.2+0137_daily_bin1710.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/54270/Model_4FGL_J0739.2+0137_daily_bin1710.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
adding source Monoceros
adding source Rosette
Working on...
/scratch/kocevski/54270/ft1_filtered_4FGL_J0739.2+0137_daily_bin1710.fits.....................!
real 183.76
user 182.09
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/54270/ft1_filtered_4FGL_J0739.2+0137_daily_bin1710.fits', '/scratch/kocevski/54270/ft2_4FGL_J0739.2+0137_daily_bin1710.fits', expMap='/scratch/kocevski/54270/expmap_682560001_682819201_4FGL_J0739.2+0137_daily_bin1710.fits', expCube='/scratch/kocevski/54270/ltcube_682560001_682819201_4FGL_J0739.2+0137_daily_bin1710.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/54270/Model_4FGL_J0739.2+0137_daily_bin1710.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0739.2+0137'

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  4.536e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-11)
205        alpha:  2.313e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
206         beta:  9.503e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
207           Eb:  4.724e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/54270/ft1_filtered_4FGL_J0739.2+0137_daily_bin1710.fits
Spacecraft file(s): /scratch/kocevski/54270/ft2_4FGL_J0739.2+0137_daily_bin1710.fits
Exposure map: /scratch/kocevski/54270/expmap_682560001_682819201_4FGL_J0739.2+0137_daily_bin1710.fits
Exposure cube: /scratch/kocevski/54270/ltcube_682560001_682819201_4FGL_J0739.2+0137_daily_bin1710.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/54270/Model_4FGL_J0739.2+0137_daily_bin1710.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) = 12404.1838382

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13802E-03   1.0000          .0000       .10000E+07
     2 'norm      '    10.418       1.0000          .0000       .10000E+07
     3 'norm      '    2.5089       1.0000          .0000       .10000E+07
     4 'norm      '    4.9843       1.0000          .0000       .10000E+07
     5 'Prefactor '    .24481E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    12.412       1.0000          .0000       .10000E+07
     7 'Prefactor '    5.7430       1.0000          .0000       .10000E+07
     8 'norm      '    8.3649       1.0000          .0000       .10000E+07
     9 'Prefactor '    .94504E-05   1.0000          .0000       .10000E+07
    10 'Prefactor '    8.8170       1.0000          .0000       .10000E+07
    11 'norm      '    .18103E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    8.8085       1.0000          .0000       .10000E+07
    13 'Prefactor '    .71993E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    .92551       1.0000          .0000       .10000E+07
    15 'norm      '    .17069E-04   1.0000          .0000       .10000E+07
    16 'norm      '    .15599E-07   1.0000          .0000       .10000E+07
    17 'norm      '    9.3180       1.0000          .0000       .10000E+07
    18 'norm      '    .16098E-03   1.0000          .0000       .10000E+07
    19 'norm      '    .10625E-06   1.0000          .0000       .10000E+07
    20 'Normalizat'    1.1771       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .99217       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   12403.13     FROM MIGRAD    STATUS=CONVERGED    160 CALLS     1291 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .29195E-05    5.6589        .16845E-06** at limit **
   2  norm          10.377        1.0624        .14586E-07    .11444E-01
   3  norm          2.4877        5.6798       -.45331E-06    .14064E-04
   4  norm          5.0083        2.6113       -.13906E-06    .60268E-02
   5  Prefactor     .55511E-10    22.625        .35630E-06** at limit **
   6  Prefactor     12.204        11.261        .42020E-07   -.42681E-03
   7  Prefactor     3.0552        104.33        .10132E-04    .30990E-03
   8  norm          8.3852        2.4644       -.14436E-06    .26645E-02
   9  Prefactor     .22239E-05    6.7582        .17561E-06** at limit **
  10  Prefactor     8.8053        4.1168        .10121E-07   -.83239E-03
  11  norm          .25924E-07    8.5503        .56542E-06** at limit **
  12  Prefactor     8.8032        9.4213        .17877E-06    .90756E-04
  13  Prefactor     .11102E-09    2.9446        .12016E-06** at limit **
  14  Prefactor     .66724E-07    194.90        .51974E-06** at limit **
  15  norm          .47740E-08    8.9853       -.89330E-06** at limit **
  16  norm           .0000        1.1521       -.17440E-06** at limit **
  17  norm          9.3098        2.2179        .90204E-07   -.24534E-02
  18  norm          .55511E-10    17.061       -.92203E-06** at limit **
  19  norm           .0000        1.4118       -.25186E-06** at limit **
  20  Normalizat    1.1810        .19585        .12231E-04    .87515E-05
  21  Prefactor     .99200        .64756E-01   -.20080E-05    .75215E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.9195e-06
  norm       = 10.3771
  norm       = 2.48772
  norm       = 5.00831
  Prefactor  = 5.55112e-11
  Prefactor  = 12.2044
  Prefactor  = 3.05525
  norm       = 8.3852
  Prefactor  = 2.22394e-06
  Prefactor  = 8.80532
  norm       = 2.59237e-08
  Prefactor  = 8.80318
  Prefactor  = 1.11022e-10
  Prefactor  = 6.67244e-08
  norm       = 4.77396e-09
  norm       = 0
  norm       = 9.30979
  norm       = 5.55112e-11
  norm       = 0
  Normalizat = 1.18099
  Prefactor  = 0.991998
 **********
 **   18 **HESSE 
 **********

 FCN=   12403.13     FROM HESSE     STATUS=OK           357 CALLS     1648 TOTAL
                     EDM=   .91E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .29195E-05    12.457        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          10.377        16.847        .31018E-03   -1.5644    
   3  norm          2.4877        5.6900        .64484E-03   -1.5676    
   4  norm          5.0083        2.6260        .45021E-03   -1.5663    
   5  Prefactor     .55511E-10    22.724        .16758E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.204        11.272        .28407E-03   -1.5638    
   7  Prefactor     3.0552        103.37        .41889E-03   -1.5673    
   8  norm          8.3852        2.4653        .34638E-03   -1.5650    
   9  Prefactor     .22239E-05    12.067        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.8053        4.1047        .33732E-03   -1.5649    
  11  norm          .25924E-07    8.6066        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.8032        9.4350        .33748E-03   -1.5649    
  13  Prefactor     .11102E-09    2.9493        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .66724E-07    194.06        .44012E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .47740E-08    8.9329        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm           .0000        1.1488        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          9.3098        2.2182        .32807E-03   -1.5647    
  18  norm          .55511E-10    17.037        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm           .0000        1.4112        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.1810        .18392        .98354E-01   -.87192    
  21  Prefactor     .99200        .61212E-01    .46169E-01   -.92997    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.09658e-07
Minuit parameter uncertainties:
  1  0.0120613
  2  16.8469
  3  5.68997
  4  2.62601
  5  7.73678e-05
  6  11.2723
  7  35.543
  8  2.46527
  9  0.0103609
  10  4.10468
  11  0.000944541
  12  9.43502
  13  3.45259e-05
  14  0.00719661
  15  0.000414075
  16  2.64113e-06
  17  2.21821
  18  7.51665e-05
  19  4.18626e-06
  20  0.184016
  21  0.0612163
Done.

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

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  8.385e+00  2.465e+00  0.000e+00  1.000e+06 ( 1.000e-11)
205        alpha:  2.313e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
206         beta:  9.503e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
207           Eb:  4.724e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  9.920e-01  6.122e-02  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
498   Normalization:  1.181e+00  1.840e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 27.20
Ra Dec: 114.820 1.622
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 2.08e-07 +/- 6.11e-08
Energy Flux (Fixed Index): 6.72e-05 +/- 1.97e-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) = 12403.0539583
delta logL = 0.0722947468694

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12403.049687
delta logL = 0.0765659665449

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.3557       1.0000          .0000       .10000E+07
     2 'alpha     '    2.1936       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1965       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98986       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   12403.05     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      210 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.3555        3.0282        .34657E-03    .90736E-03
   2  alpha         2.1937        .33680        .29208       -.17133E-04
   3  Normalizat    1.1964        .17571        .97838E-01    .27101E-04
   4  Prefactor     .98987        .58412E-01    .46140E-01   -.80617E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 8.35551
  alpha      = 2.19374
  Normalizat = 1.19639
  Prefactor  = 0.989868
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.3555        2.4916        .90673E-05   -1.5650    
   2  alpha         2.1937        .30270        .11764E-01   -.12281    
   3  Normalizat    1.1964        .18834        .43349E-03   -.86714    
   4  Prefactor     .98987        .61955E-01    .15941E-03   -.93068    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.38188e-11
Minuit parameter uncertainties:
  1  2.4916
  2  0.303455
  3  0.188451
  4  0.0619598
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/54270': 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) = 12403.0496868
delta logL = 0.0765662102058

Extracting fit parameters...

4FGL J0739.2+0137
   Spectrum: LogParabola
204         norm:  8.356e+00  2.492e+00  0.000e+00  1.000e+06 ( 1.000e-11)
205        alpha:  2.194e+00  3.035e-01  0.000e+00  5.000e+00 ( 1.000e+00)
206         beta:  9.503e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
207           Eb:  4.724e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
499    Prefactor:  9.899e-01  6.196e-02  0.000e+00  1.000e+01 ( 1.000e+00)
500        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
501        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
498   Normalization:  1.196e+00  1.885e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 27.21
Ra Dec: 114.820 1.622
Photon Index (Free Index): 2.19 +/- 0.30
Photon Flux (Free Index): 1.89e-07 +/- 7.30e-08
Energy Flux (Free Index): 6.97e-05 +/- 2.20e-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/54270/cmap_HighResolution_682560001_682819201_4FGL_J0739.2+0137_daily_bin1710.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.08e-07', energy_flux2='6.97e-05', photon_flux_error='6.11e-08', dlogl='7.66e-02', energy_flux='6.72e-05', photon_flux2='1.89e-07', job_status='DONE', time_completed='2022-09-16 13:21:40.724679', photon_index_error2='0.30', photon_index2='2.19', ts='27.20', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='2.20e-05', EG='1.18', time_epoch_completed='1663359700.72', return_code='0', job_id='54270', GAL2='0.99', EG2='1.20', return_code2='0', energy_flux_error='1.97e-05', photon_flux_error2='7.30e-08', ts2='27.21', photon_index='2.31' WHERE bin_id='1710' AND source_name='4FGL J0739.2+0137' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 13:21:40 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 54270: <4FGL_J0739.2+0137_daily_bin1710> in cluster <slac> Done

Job <4FGL_J0739.2+0137_daily_bin1710> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 16 13:05:26 2022
Job was executed on host(s) <bullet0055>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 13:08:12 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 13:08:12 2022
Terminated at Fri Sep 16 13:21:41 2022
Results reported at Fri Sep 16 13:21:41 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0739.2+0137_daily_bin1710 114.82 1.6216 682560001 682819201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0739.2+0137 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   739.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             389.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   809 sec.
    Turnaround time :                            975 sec.

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

