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


Performing analysis on: 4FGL_J0738.1+1742_daily_bin1723
RA = 114.539, Dec = 17.7066
tmin = 685929601, tmax = 686188801
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='431103', job_status='RUN', time_executed='2022-09-30 00:11:24.311226', time_epoch_executed='1664521884.31' WHERE source_name='4FGL J0738.1+1742' and cadence='daily' and bin_id='1723'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/431103

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/431103/ft1_4FGL_J0738.1+1742_daily_bin1723.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/431103/ft2_4FGL_J0738.1+1742_daily_bin1723.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/431103/ft1_4FGL_J0738.1+1742_daily_bin1723.fits outfile=/scratch/kocevski/431103/ft1_filteredMKT_4FGL_J0738.1+1742_daily_bin1723.fits ra=114.539 dec=17.7066 rad=12.0 tmin=685929601.0 tmax=686188801.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.62
user 3.36
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/431103/ft2_4FGL_J0738.1+1742_daily_bin1723.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/431103/ft1_filteredMKT_4FGL_J0738.1+1742_daily_bin1723.fits evtable="EVENTS" outfile="/scratch/kocevski/431103/ft1_filtered_4FGL_J0738.1+1742_daily_bin1723.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.52
user 0.35
sys 0.16

Number of photons that the gtmktime cut: 738

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/431103/ft1_filtered_4FGL_J0738.1+1742_daily_bin1723.fits" evtable="EVENTS" scfile=/scratch/kocevski/431103/ft2_4FGL_J0738.1+1742_daily_bin1723.fits sctable="SC_DATA" outfile=/scratch/kocevski/431103/ltcube_685929601_686188801_4FGL_J0738.1+1742_daily_bin1723.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/431103/ft2_4FGL_J0738.1+1742_daily_bin1723.fits
.....................!
real 13.68
user 13.31
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/431103/ft1_filtered_4FGL_J0738.1+1742_daily_bin1723.fits evtable="EVENTS" scfile=/scratch/kocevski/431103/ft2_4FGL_J0738.1+1742_daily_bin1723.fits sctable="SC_DATA" expcube=/scratch/kocevski/431103/ltcube_685929601_686188801_4FGL_J0738.1+1742_daily_bin1723.fits outfile=/scratch/kocevski/431103/expmap_685929601_686188801_4FGL_J0738.1+1742_daily_bin1723.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/431103/ltcube_685929601_686188801_4FGL_J0738.1+1742_daily_bin1723.fits
.....................!
real 191.79
user 186.30
sys 5.14

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_8years/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/431103/ft1_filtered_4FGL_J0738.1+1742_daily_bin1723.fits scfile=/scratch/kocevski/431103/ft2_4FGL_J0738.1+1742_daily_bin1723.fits outfile=/scratch/kocevski/431103/cmap_685929601_686188801_4FGL_J0738.1+1742_daily_bin1723.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.57
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/431103/ft1_filtered_4FGL_J0738.1+1742_daily_bin1723.fits scfile=/scratch/kocevski/431103/ft2_4FGL_J0738.1+1742_daily_bin1723.fits outfile=/scratch/kocevski/431103/cmap_HighResolution_685929601_686188801_4FGL_J0738.1+1742_daily_bin1723.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.56
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/431103/ft1_filtered_4FGL_J0738.1+1742_daily_bin1723.fits evtable="EVENTS" scfile=/scratch/kocevski/431103/ft2_4FGL_J0738.1+1742_daily_bin1723.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/431103/Model_4FGL_J0738.1+1742_daily_bin1723.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/431103/ft1_filtered_4FGL_J0738.1+1742_daily_bin1723.fits.....................!
real 107.02
user 105.51
sys 1.31

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/431103/ft1_filtered_4FGL_J0738.1+1742_daily_bin1723.fits', '/scratch/kocevski/431103/ft2_4FGL_J0738.1+1742_daily_bin1723.fits', expMap='/scratch/kocevski/431103/expmap_685929601_686188801_4FGL_J0738.1+1742_daily_bin1723.fits', expCube='/scratch/kocevski/431103/ltcube_685929601_686188801_4FGL_J0738.1+1742_daily_bin1723.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/431103/Model_4FGL_J0738.1+1742_daily_bin1723.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  0.000e+00  1.000e+06 ( 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 -5.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/431103/ft1_filtered_4FGL_J0738.1+1742_daily_bin1723.fits
Spacecraft file(s): /scratch/kocevski/431103/ft2_4FGL_J0738.1+1742_daily_bin1723.fits
Exposure map: /scratch/kocevski/431103/expmap_685929601_686188801_4FGL_J0738.1+1742_daily_bin1723.fits
Exposure cube: /scratch/kocevski/431103/ltcube_685929601_686188801_4FGL_J0738.1+1742_daily_bin1723.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/431103/Model_4FGL_J0738.1+1742_daily_bin1723.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) = 7744.83816972

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.452       1.0000          .0000       .10000E+07
     2 'Prefactor '    .31148E-03   1.0000          .0000       .10000E+07
     3 'norm      '    33.603       1.0000          .0000       .10000E+07
     4 'Prefactor '    5.1512       1.0000          .0000       .10000E+07
     5 'norm      '    .46096       1.0000          .0000       .10000E+07
     6 'norm      '    13.508       1.0000          .0000       .10000E+07
     7 'norm      '    .40492E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    .90905E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    .51292E-07   1.0000          .0000       .10000E+07
    10 'Prefactor '    .26839E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    4.3466       1.0000          .0000       .10000E+07
    12 'norm      '    .42878E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .44509E-01   1.0000          .0000       .10000E+07
    14 'norm      '    .13256       1.0000          .0000       .10000E+07
    15 'Normalizat'    .93410       1.0000         .10000E-01   10.000    
    16 'Prefactor '    1.0886       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7744.742     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      894 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.151        19.242        .30347E-08    .22498E-02
   2  Prefactor     .13323E-08    3.4813       -.22268E-06** at limit **
   3  norm          34.001        3.2243       -.24749E-06    .12656E-01
   4  Prefactor     5.1997        6.6866        .15091E-06    .70185E-03
   5  norm          .46132        .74621       -.94351E-07   -.21162E-02
   6  norm          13.509        2.8542       -.37339E-08   -.25410E-02
   7  norm          .15927E-05    18.787        .17186E-06** at limit **
   8  Prefactor     .34966E-06    61.940        .53230E-05** at limit **
   9  Prefactor     .77161E-08    7.7039       -.75758E-06** at limit **
  10  Prefactor     .15887E-05    11.671       -.11939E-05** at limit **
  11  Prefactor     4.3511        2.9699        .21782E-07   -.17182E-02
  12  norm          .14141E-05    11.878        .52326E-06** at limit **
  13  Prefactor     .46990E-06    64.949       -.69851E-05** at limit **
  14  norm          .17930E-07    41.119        .22453E-05** at limit **
  15  Normalizat    .93400        .21064        .63862E-05   -.11099E-03
  16  Prefactor     1.0878        .13211       -.19133E-05   -.15631E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.1508
  Prefactor  = 1.33227e-09
  norm       = 34.0015
  Prefactor  = 5.1997
  norm       = 0.46132
  norm       = 13.5088
  norm       = 1.59273e-06
  Prefactor  = 3.49665e-07
  Prefactor  = 7.71605e-09
  Prefactor  = 1.58867e-06
  Prefactor  = 4.35106
  norm       = 1.41409e-06
  Prefactor  = 4.69902e-07
  norm       = 1.79301e-08
  Normalizat = 0.933998
  Prefactor  = 1.08781
 **********
 **   18 **HESSE 
 **********

 FCN=   7744.742     FROM HESSE     STATUS=OK           247 CALLS     1141 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.151        27.116        .22119E-03   -1.5616    
   2  Prefactor     .13323E-08    3.5029        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          34.001        13.289        .17253E-03   -1.5591    
   4  Prefactor     5.1997        6.6928        .44271E-03   -1.5662    
   5  norm          .46132        .92195        .22002E-02   -1.5694    
   6  norm          13.509        2.8591        .27228E-03   -1.5634    
   7  norm          .15927E-05    2.6965        .49619E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .34966E-06    63.885        .14180E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .77161E-08    7.8409        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .15887E-05    20.104        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.3511        2.9778        .48290E-03   -1.5666    
  12  norm          .14141E-05    22.045        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .46990E-06    7.1885        .73841E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .17930E-07    41.247        .13126E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    .93400        .19227        .75887E-01   -.95276    
  16  Prefactor     1.0878        .11904        .38038E-01   -.89857    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62602e-07
Minuit parameter uncertainties:
  1  27.1164
  2  0.000137109
  3  13.2893
  4  6.69285
  5  0.921954
  6  2.85908
  7  0.00414475
  8  0.0094527
  9  0.000491636
  10  0.0113028
  11  2.97778
  12  0.0111667
  13  0.00367573
  14  0.00172086
  15  0.192416
  16  0.119072
Done.

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

Extracting fit parameters...

4FGL J0738.1+1742
   Spectrum: LogParabola
277         norm:  1.351e+01  2.859e+00  0.000e+00  1.000e+06 ( 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 -5.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.088e+00  1.191e-01  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:  9.340e-01  1.924e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 71.23
Ra Dec: 114.539 17.707
Photon Index (Fixed Index): 1.98 +/- 0.00
Photon Flux (Fixed Index): 2.46e-07 +/- 5.20e-08
Energy Flux (Fixed Index): 1.76e-04 +/- 3.73e-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) = 7743.79905344
delta logL = 0.943096735303

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7743.77334097
delta logL = 0.968809207308

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.580       1.0000          .0000       .10000E+07
     2 'alpha     '    2.2401       1.0000          .0000       5.0000    
     3 'Normalizat'    .87951       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1042       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=   7743.773     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      241 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.580        28.749        .30778E-03    .29136E-02
   2  alpha         2.2400        1.5492        .94020E-01    .11497E-03
   3  Normalizat    .87947        .18953        .77674E-01    .22183E-04
   4  Prefactor     1.1042        .87335E-01    .37431E-01    .34445E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 10.5803
  alpha      = 2.24002
  Normalizat = 0.879468
  Prefactor  = 1.10421
 **********
 **   18 **HESSE 
 **********

 FCN=   7743.773     FROM HESSE     STATUS=OK            33 CALLS      274 TOTAL
                     EDM=   .29E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.580        3.2637        .54211E-05   -1.5643    
   2  alpha         2.2400        .19570        .40679E-02   -.10418    
   3  Normalizat    .87947        .20944        .34380E-03   -.97185    
   4  Prefactor     1.1042        .13138        .19737E-03   -.89332    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.93407e-12
Minuit parameter uncertainties:
  1  3.26371
  2  0.195901
  3  0.209636
  4  0.131421
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/431103': 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) = 7743.77334075
delta logL = 0.968809419018

Extracting fit parameters...

4FGL J0738.1+1742
   Spectrum: LogParabola
277         norm:  1.058e+01  3.264e+00  0.000e+00  1.000e+06 ( 1.000e-12)
278        alpha:  2.240e+00  1.959e-01  0.000e+00  5.000e+00 ( 1.000e+00)
279         beta:  6.041e-02  0.000e+00 -5.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.104e+00  1.314e-01  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:  8.795e-01  2.096e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 73.29
Ra Dec: 114.539 17.707
Photon Index (Free Index): 2.24 +/- 0.20
Photon Flux (Free Index): 3.02e-07 +/- 7.07e-08
Energy Flux (Free Index): 1.35e-04 +/- 3.60e-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/431103/cmap_HighResolution_685929601_686188801_4FGL_J0738.1+1742_daily_bin1723.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.46e-07', energy_flux2='1.35e-04', photon_flux_error='5.20e-08', dlogl='9.69e-01', energy_flux='1.76e-04', photon_flux2='3.02e-07', job_status='DONE', time_completed='2022-09-30 00:20:30.984519', photon_index_error2='0.20', photon_index2='2.24', ts='71.23', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', energy_flux_error2='3.60e-05', EG='0.93', time_epoch_completed='1664522430.98', return_code='0', job_id='431103', GAL2='1.10', EG2='0.88', return_code2='0', energy_flux_error='3.73e-05', photon_flux_error2='7.07e-08', ts2='73.29', photon_index='1.98' WHERE bin_id='1723' AND source_name='4FGL J0738.1+1742' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 30 00:20:31 PDT 2022

88', return_code2='0', energy_flux_error='3.73e-05', photon_flux_error2='7.07e-08', ts2='73.29', photon_index='1.98' WHERE bin_id='1723' AND source_name='4FGL J0738.1+1742' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 30 00:19:38 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0150>
Subject: Job 431104: <4FGL_J0738.1+1742_daily_bin1723> in cluster <slac> Done

Job <4FGL_J0738.1+1742_daily_bin1723> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep 30 00:05:50 2022
Job was executed on host(s) <bullet0150>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 30 00:09:45 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 30 00:09:45 2022
Terminated at Fri Sep 30 00:19:38 2022
Results reported at Fri Sep 30 00:19:38 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0738.1+1742_daily_bin1723 114.539 17.7066 685929601 686188801 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 :                                   551.64 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             316.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   593 sec.
    Turnaround time :                            828 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0021>
Subject: Job 431103: <4FGL_J0738.1+1742_daily_bin1723> in cluster <slac> Done

Job <4FGL_J0738.1+1742_daily_bin1723> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 30 00:05:50 2022
Job was executed on host(s) <bullet0021>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 30 00:09:43 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 30 00:09:43 2022
Terminated at Fri Sep 30 00:20:31 2022
Results reported at Fri Sep 30 00:20:31 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0738.1+1742_daily_bin1723 114.539 17.7066 685929601 686188801 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 :                                   549.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             367.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   648 sec.
    Turnaround time :                            881 sec.

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

