aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  while getting realm
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 17 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 = 17066
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0738.1+1742_weekly_bin119
RA = 114.539, Dec = 17.7066
tmin = 310953601, tmax = 311558401
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='111660', job_status='RUN', time_executed='2021-07-11 20:07:19.181389', time_epoch_executed='1626059239.18' WHERE source_name='4FGL J0738.1+1742' and cadence='weekly' and bin_id='119'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/111660

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/111660/ft1_4FGL_J0738.1+1742_weekly_bin119.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/111660/ft2_4FGL_J0738.1+1742_weekly_bin119.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/111660/ft1_4FGL_J0738.1+1742_weekly_bin119.fits outfile=/scratch/kocevski/111660/ft1_filteredMKT_4FGL_J0738.1+1742_weekly_bin119.fits ra=114.539 dec=17.7066 rad=12.0 tmin=310953601.0 tmax=311558401.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 7.72
user 7.22
sys 0.42

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/111660/ft2_4FGL_J0738.1+1742_weekly_bin119.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/111660/ft2_4FGL_J0738.1+1742_weekly_bin119.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/111660/ft1_filteredMKT_4FGL_J0738.1+1742_weekly_bin119.fits evtable="EVENTS" outfile="/scratch/kocevski/111660/ft1_filtered_4FGL_J0738.1+1742_weekly_bin119.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.77
user 0.41
sys 0.33

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/111660/ft1_filtered_4FGL_J0738.1+1742_weekly_bin119.fits" evtable="EVENTS" scfile=/scratch/kocevski/111660/ft2_4FGL_J0738.1+1742_weekly_bin119.fits sctable="SC_DATA" outfile=/scratch/kocevski/111660/ltcube_310953601_311558401_4FGL_J0738.1+1742_weekly_bin119.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/111660/ft2_4FGL_J0738.1+1742_weekly_bin119.fits
.....................!
real 31.31
user 30.38
sys 0.61

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/111660/ft1_filtered_4FGL_J0738.1+1742_weekly_bin119.fits evtable="EVENTS" scfile=/scratch/kocevski/111660/ft2_4FGL_J0738.1+1742_weekly_bin119.fits sctable="SC_DATA" expcube=/scratch/kocevski/111660/ltcube_310953601_311558401_4FGL_J0738.1+1742_weekly_bin119.fits outfile=/scratch/kocevski/111660/expmap_310953601_311558401_4FGL_J0738.1+1742_weekly_bin119.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/111660/ltcube_310953601_311558401_4FGL_J0738.1+1742_weekly_bin119.fits
.....................!
real 193.17
user 186.16
sys 5.65

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 IC 443 in ROI with RadialGaussian spatial model.
Extended source Rosette in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/Rosette.fits is the correct path to the extended template.
Extended source Monoceros in ROI with RadialGaussian spatial model.
Added 174 point sources and 3 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 J0738.1+1742 @ 114.539 17.7066

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/111660/ft1_filtered_4FGL_J0738.1+1742_weekly_bin119.fits scfile=/scratch/kocevski/111660/ft2_4FGL_J0738.1+1742_weekly_bin119.fits outfile=/scratch/kocevski/111660/cmap_310953601_311558401_4FGL_J0738.1+1742_weekly_bin119.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.539 yref=17.7066 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.83
user 0.42
sys 0.32

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/111660/ft1_filtered_4FGL_J0738.1+1742_weekly_bin119.fits scfile=/scratch/kocevski/111660/ft2_4FGL_J0738.1+1742_weekly_bin119.fits outfile=/scratch/kocevski/111660/cmap_HighResolution_310953601_311558401_4FGL_J0738.1+1742_weekly_bin119.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.539 yref=17.7066 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.78
user 0.42
sys 0.33

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/111660/ft1_filtered_4FGL_J0738.1+1742_weekly_bin119.fits evtable="EVENTS" scfile=/scratch/kocevski/111660/ft2_4FGL_J0738.1+1742_weekly_bin119.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/111660/Model_4FGL_J0738.1+1742_weekly_bin119.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 IC 443
adding source Monoceros
adding source Rosette
Working on...
/scratch/kocevski/111660/ft1_filtered_4FGL_J0738.1+1742_weekly_bin119.fits.....................!
real 225.20
user 222.78
sys 1.62

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/111660/ft1_filtered_4FGL_J0738.1+1742_weekly_bin119.fits', '/scratch/kocevski/111660/ft2_4FGL_J0738.1+1742_weekly_bin119.fits', expMap='/scratch/kocevski/111660/expmap_310953601_311558401_4FGL_J0738.1+1742_weekly_bin119.fits', expCube='/scratch/kocevski/111660/ltcube_310953601_311558401_4FGL_J0738.1+1742_weekly_bin119.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/111660/Model_4FGL_J0738.1+1742_weekly_bin119.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0738.1+1742'

4FGL J0738.1+1742
   Spectrum: LogParabola
277         norm:  2.808e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
278        alpha:  1.980e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
279         beta:  6.041e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
280           Eb:  1.540e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/111660/ft1_filtered_4FGL_J0738.1+1742_weekly_bin119.fits
Spacecraft file(s): /scratch/kocevski/111660/ft2_4FGL_J0738.1+1742_weekly_bin119.fits
Exposure map: /scratch/kocevski/111660/expmap_310953601_311558401_4FGL_J0738.1+1742_weekly_bin119.fits
Exposure cube: /scratch/kocevski/111660/ltcube_310953601_311558401_4FGL_J0738.1+1742_weekly_bin119.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/111660/Model_4FGL_J0738.1+1742_weekly_bin119.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) = 17448.2225804

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13023E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.9354       1.0000         .10000E-03   10000.    
     3 'norm      '    5.9608       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.3909       1.0000         .10000E-03   10000.    
     6 'norm      '    1.2624       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.2639       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.643       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.7871       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.1594       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.2800       1.0000         .10000E-03   10000.    
    13 'Prefactor '    25.345       1.0000         .10000E-03   10000.    
    14 'norm      '    .10090E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    32.985       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .18716E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .46769E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.1392       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0205       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   17448.12     FROM MIGRAD    STATUS=CONVERGED    391 CALLS     1667 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.977        .27359E-06** at limit **
   2  Prefactor     1.9351        3.4182        .44406E-05   -.79558E-03
   3  norm          5.9607        6.3755        .80724E-07    .28641E-04
   4  Prefactor     .10000E-03    1.6776        .21138E-06** at limit **
   5  norm          3.3909        .98868        .50495E-08   -.32604E-03
   6  norm          1.2625        .98098        .25071E-06    .12523E-02
   7  Prefactor     7.2642        7.1451       -.83605E-06   -.74028E-03
   8  norm          .10000E-03    .89407       -.73228E-06** at limit **
   9  Prefactor     17.829        15.493       -.19569E-06   -.84191E-04
  10  Prefactor     7.7644        8.9992       -.25606E-06   -.93340E-04
  11  Prefactor     7.1349        21.077        .29679E-06   -.53461E-04
  12  Prefactor     1.2807        1.6125       -.59392E-07   -.37754E-03
  13  Prefactor     25.321        20.351        .53532E-06   -.93590E-04
  14  norm          .10000E-03    16.614       -.50137E-06** at limit **
  15  Prefactor     32.943        10.758       -.11879E-06   -.17226E-03
  16  Prefactor     .10000E-03    22.382        .46627E-06** at limit **
  17  norm          .10000E-03    25.896        .58292E-08** at limit **
  18  Normalizat    1.1392        .13529        .23316E-05    .44071E-03
  19  Prefactor     1.0205        .80424E-01   -.16191E-05   -.23688E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 1.93515
  norm       = 5.9607
  Prefactor  = 0.0001
  norm       = 3.39088
  norm       = 1.26251
  Prefactor  = 7.26419
  norm       = 0.000100001
  Prefactor  = 17.8285
  Prefactor  = 7.76437
  Prefactor  = 7.13492
  Prefactor  = 1.28069
  Prefactor  = 25.3207
  norm       = 0.0001
  Prefactor  = 32.943
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.13923
  Prefactor  = 1.0205
 **********
 **   18 **HESSE 
 **********

 FCN=   17448.12     FROM HESSE     STATUS=OK           274 CALLS     1941 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.9351        3.4700        .14925E-02   -1.5430    
   3  norm          5.9607        6.3763        .16447E-03   -1.5220    
   4  Prefactor     .10000E-03    4.7372        .33154E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.3909        .98710        .67802E-04   -1.5340    
   6  norm          1.2625        1.0013        .93572E-04   -1.5483    
   7  Prefactor     7.2642        7.3590        .14882E-03   -1.5169    
   8  norm          .10000E-03    .93456        .12348E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     17.829        15.495        .95352E-04   -1.4863    
  10  Prefactor     7.7644        9.0049        .14370E-03   -1.5151    
  11  Prefactor     7.1349        21.073        .14992E-03   -1.5174    
  12  Prefactor     1.2807        1.5872        .17963E-03   -1.5482    
  13  Prefactor     25.321        20.391        .79571E-04   -1.4701    
  14  norm          .10000E-03    16.778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     32.943        10.733        .69770E-04   -1.4559    
  16  Prefactor     .10000E-03    22.402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    25.928        .21190E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.1392        .15615        .32063E-03   -.88502    
  19  Prefactor     1.0205        .92040E-01    .20496E-03   -.92049    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.1738e-09
Minuit parameter uncertainties:
  1  0.000248162
  2  3.47038
  3  6.37706
  4  6.03984e-06
  5  0.987106
  6  1.00132
  7  7.35995
  8  5.3671e-05
  9  15.4985
  10  9.00646
  11  21.0951
  12  1.58729
  13  20.3965
  14  0.000159247
  15  10.7341
  16  5.79879e-05
  17  7.19325e-05
  18  0.156209
  19  0.0920539
Done.

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

Extracting fit parameters...

4FGL J0738.1+1742
   Spectrum: LogParabola
277         norm:  1.263e+00  1.001e+00  1.000e-04  1.000e+04 ( 1.000e-12)
278        alpha:  1.980e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
279         beta:  6.041e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
280           Eb:  1.540e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  1.021e+00  9.205e-02  0.000e+00  1.000e+01 ( 1.000e+00)
574        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
575        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
572   Normalization:  1.139e+00  1.562e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.63
Ra Dec: 114.539 17.707
Photon Index (Fixed Index): 1.98 +/- 0.00
Photon Flux (Fixed Index): 2.30e-08 +/- 1.82e-08
Energy Flux (Fixed Index): 1.65e-05 +/- 1.31e-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) = 17448.051407
delta logL = 0.0665065767971

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 17448.0426932
delta logL = 0.0752204439959

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1674       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1792       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1325       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0222       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   17448.04     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      209 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1674        8.4782        .10632E-01    .77107E-03
   2  alpha         2.1792        3.4729        .41588        .69561E-04
   3  Normalizat    1.1325        .40057E-01    .72631E-01    .36679E-04
   4  Prefactor     1.0222        .21246E-01    .41927E-01    .11290E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.16743
  alpha      = 2.1792
  Normalizat = 1.13252
  Prefactor  = 1.02222
 **********
 **   18 **HESSE 
 **********

 FCN=   17448.04     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1674        .83323        .86226E-04   -1.5492    
   2  alpha         2.1792        .52887        .14874E-01   -.12867    
   3  Normalizat    1.1325        .14976        .32140E-03   -.88715    
   4  Prefactor     1.0222        .90885E-01    .20478E-03   -.91993    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.57642e-09
Minuit parameter uncertainties:
  1  0.833241
  2  0.53296
  3  0.149813
  4  0.0908989
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/111660': 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) = 17448.0426932
delta logL = 0.0752204468845

Extracting fit parameters...

4FGL J0738.1+1742
   Spectrum: LogParabola
277         norm:  1.167e+00  8.332e-01  1.000e-04  1.000e+04 ( 1.000e-12)
278        alpha:  2.179e+00  5.330e-01  0.000e+00  5.000e+00 ( 1.000e+00)
279         beta:  6.041e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
280           Eb:  1.540e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  1.022e+00  9.090e-02  0.000e+00  1.000e+01 ( 1.000e+00)
574        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
575        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
572   Normalization:  1.133e+00  1.498e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.82
Ra Dec: 114.539 17.707
Photon Index (Free Index): 2.18 +/- 0.53
Photon Flux (Free Index): 2.99e-08 +/- 2.58e-08
Energy Flux (Free Index): 1.47e-05 +/- 1.00e-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/111660/cmap_HighResolution_310953601_311558401_4FGL_J0738.1+1742_weekly_bin119.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.30e-08', energy_flux2='1.47e-05', photon_flux_error='1.82e-08', dlogl='7.52e-02', energy_flux='1.65e-05', photon_flux2='2.99e-08', job_status='DONE', time_completed='2021-07-11 20:25:03.949632', photon_index_error2='0.53', photon_index2='2.18', ts='5.63', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='1.00e-05', EG='1.14', time_epoch_completed='1626060303.95', return_code='0', job_id='111660', GAL2='1.02', EG2='1.13', return_code2='0', energy_flux_error='1.31e-05', photon_flux_error2='2.58e-08', ts2='5.82', photon_index='1.98' WHERE bin_id='119' AND source_name='4FGL J0738.1+1742' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul 11 20:25:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0290>
Subject: Job 111660: <4FGL_J0738.1+1742_weekly_bin119> in cluster <slac> Done

Job <4FGL_J0738.1+1742_weekly_bin119> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Jul 11 04:25:36 2021
Job was executed on host(s) <bullet0290>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul 11 04:28:55 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jul 11 04:28:55 2021
Terminated at Sun Jul 11 20:25:05 2021
Results reported at Sun Jul 11 20:25:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0738.1+1742_weekly_bin119 114.539 17.7066 310953601 311558401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0738.1+1742 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1083.00 sec.
    Max Memory :                                 1259 MB
    Average Memory :                             52.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   57369 sec.
    Turnaround time :                            57569 sec.

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

