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


Performing analysis on: 4FGL_J0738.1+1742_weekly_bin753
RA = 114.539, Dec = 17.7066
tmin = 694396801, tmax = 695001601
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='228204', job_status='RUN', time_executed='2023-01-10 02:43:45.075255', time_epoch_executed='1673347425.08' WHERE source_name='4FGL J0738.1+1742' and cadence='weekly' and bin_id='753'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/228204

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/228204/ft1_4FGL_J0738.1+1742_weekly_bin753.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/228204/ft2_4FGL_J0738.1+1742_weekly_bin753.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/228204/ft1_4FGL_J0738.1+1742_weekly_bin753.fits outfile=/scratch/kocevski/228204/ft1_filteredMKT_4FGL_J0738.1+1742_weekly_bin753.fits ra=114.539 dec=17.7066 rad=12.0 tmin=694396801.0 tmax=695001601.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 6.12
user 5.85
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/228204/ft2_4FGL_J0738.1+1742_weekly_bin753.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/228204/ft1_filteredMKT_4FGL_J0738.1+1742_weekly_bin753.fits evtable="EVENTS" outfile="/scratch/kocevski/228204/ft1_filtered_4FGL_J0738.1+1742_weekly_bin753.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.55
user 0.37
sys 0.17

Number of photons that the gtmktime cut: 6

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/228204/ft1_filtered_4FGL_J0738.1+1742_weekly_bin753.fits evtable="EVENTS" scfile=/scratch/kocevski/228204/ft2_4FGL_J0738.1+1742_weekly_bin753.fits sctable="SC_DATA" expcube=/scratch/kocevski/228204/ltcube_694396801_695001601_4FGL_J0738.1+1742_weekly_bin753.fits outfile=/scratch/kocevski/228204/expmap_694396801_695001601_4FGL_J0738.1+1742_weekly_bin753.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/228204/ltcube_694396801_695001601_4FGL_J0738.1+1742_weekly_bin753.fits
.....................!
real 191.90
user 185.85
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_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/228204/ft1_filtered_4FGL_J0738.1+1742_weekly_bin753.fits scfile=/scratch/kocevski/228204/ft2_4FGL_J0738.1+1742_weekly_bin753.fits outfile=/scratch/kocevski/228204/cmap_694396801_695001601_4FGL_J0738.1+1742_weekly_bin753.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.58
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/228204/ft1_filtered_4FGL_J0738.1+1742_weekly_bin753.fits scfile=/scratch/kocevski/228204/ft2_4FGL_J0738.1+1742_weekly_bin753.fits outfile=/scratch/kocevski/228204/cmap_HighResolution_694396801_695001601_4FGL_J0738.1+1742_weekly_bin753.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.59
user 0.42
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/228204/ft1_filtered_4FGL_J0738.1+1742_weekly_bin753.fits', '/scratch/kocevski/228204/ft2_4FGL_J0738.1+1742_weekly_bin753.fits', expMap='/scratch/kocevski/228204/expmap_694396801_695001601_4FGL_J0738.1+1742_weekly_bin753.fits', expCube='/scratch/kocevski/228204/ltcube_694396801_695001601_4FGL_J0738.1+1742_weekly_bin753.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/228204/Model_4FGL_J0738.1+1742_weekly_bin753.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/228204/ft1_filtered_4FGL_J0738.1+1742_weekly_bin753.fits
Spacecraft file(s): /scratch/kocevski/228204/ft2_4FGL_J0738.1+1742_weekly_bin753.fits
Exposure map: /scratch/kocevski/228204/expmap_694396801_695001601_4FGL_J0738.1+1742_weekly_bin753.fits
Exposure cube: /scratch/kocevski/228204/ltcube_694396801_695001601_4FGL_J0738.1+1742_weekly_bin753.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/228204/Model_4FGL_J0738.1+1742_weekly_bin753.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 89.9018850474

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 88.9087838826

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .91726       1.0000          .0000       .10000E+07
     2 'Prefactor '    .29232       1.0000          .0000       .10000E+07
     3 'norm      '    .47062E-01   1.0000          .0000       .10000E+07
     4 'Prefactor '    321.99       1.0000          .0000       .10000E+07
     5 'norm      '    2.1925       1.0000          .0000       .10000E+07
     6 'norm      '    1.9941       1.0000          .0000       .10000E+07
     7 'norm      '    1.7830       1.0000          .0000       .10000E+07
     8 'Prefactor '    7.4886       1.0000          .0000       .10000E+07
     9 'Prefactor '    6.9747       1.0000          .0000       .10000E+07
    10 'Prefactor '    6.3379       1.0000          .0000       .10000E+07
    11 'Prefactor '    .23012E-05   1.0000          .0000       .10000E+07
    12 'norm      '    2.1253       1.0000          .0000       .10000E+07
    13 'Prefactor '    1.4875       1.0000          .0000       .10000E+07
    14 'norm      '    7.5087       1.0000          .0000       .10000E+07
    15 'Normalizat'    .10733E-01   1.0000         .10000E-01   10.000    
    16 'Prefactor '    .36509       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=   88.89597     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      324 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .54611E-05    394.01       -.12572E-04** at limit **
   2  Prefactor      .0000        125.14        .36656E-05** at limit **
   3  norm           .0000        388.61       -.14741E-04** at limit **
   4  Prefactor     329.83        128.74        .30111E-06   -.35139    
   5  norm          .48633E-04    226.48       -.33968E-05** at limit **
   6  norm          .40732        1083.8       -.31559E-05   -.36334E-01
   7  norm          1.7830        1.0460         .0000         .0000    
   8  Prefactor     7.4886        1.0022         .0000         .0000    
   9  Prefactor     6.9747        1.0026         .0000         .0000    
  10  Prefactor     1.4655        458.19       -.17695E-05    .70307E-01
  11  Prefactor     .11330E-06    136.78        .92630E-05** at limit **
  12  norm          .71602E-04    212.95       -.29230E-05** at limit **
  13  Prefactor     .55511E-10    232.85       -.44421E-05** at limit **
  14  norm          .42909E-01    2280.2       -.42750E-05** at limit **
  15  Normalizat    .10000E-01    .96171        .18847E-03** at limit **
  16  Prefactor     .36229        .25127        .32421E-04   -.22420E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.46108e-06
  Prefactor  = 0
  norm       = 0
  Prefactor  = 329.827
  norm       = 4.86335e-05
  norm       = 0.407317
  norm       = 1.78302
  Prefactor  = 7.48855
  Prefactor  = 6.9747
  Prefactor  = 1.46553
  Prefactor  = 1.13298e-07
  norm       = 7.16019e-05
  Prefactor  = 5.55112e-11
  norm       = 0.0429086
  Normalizat = 0.01
  Prefactor  = 0.362285
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   88.89597     FROM HESSE     STATUS=FAILED        35 CALLS      359 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .54611E-05    394.41        .44574E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        124.60        .10320E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm           .0000        388.11        .15659E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     329.83        384.94        .55738E-04   -1.5345    
   5  norm          .48633E-04    432.78        .69475E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .40732        8756.8        .73331E-03   -1.5721    
   7  norm          62977.        62976.         .0000       -1.5681    
   8  Prefactor     7.4886        1.0022         .0000       -1.5653    
   9  Prefactor     6.9747        1.0026         .0000       -1.5655    
  10  Prefactor     1.4655        .48238       -.17695E-05   -1.5684    
  11  Prefactor     .11330E-06    .44347E-01    .92630E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .71602E-04    .12498       -.29230E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .55511E-10    .19314       -.44421E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .42909E-01    .75763E-01   -.42750E-05   -1.5712    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Normalizat    .10000E-01    .25524        .18847E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .36229        .68869        .32421E-04   -1.1878    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.15963e-09
Minuit parameter uncertainties:
  1  0.0928268
  2  9.80961e-05
  3  0.000158555
  4  384.967
  5  0.290176
  6  119.621
  7  1.04601
  8  1.00225
  9  1.00259
  10  0.482383
  11  0.000141757
  12  0.00598293
  13  6.36454e-06
  14  0.0757634
  15  1.34096e-06
  16  0.705323
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 88.8959746471

Extracting fit parameters...

4FGL J0738.1+1742
   Spectrum: LogParabola
277         norm:  4.073e-01  1.196e+02  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:  3.623e-01  7.053e-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:  1.000e-02  1.341e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 114.539 17.707
Photon Flux Upper Limit: 9.57e-04 ph cm-2 s-1
Energy Flux Upper Limit: 6.86e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/228204/likelihoodResults_694396801_695001601_4FGL_J0738.1+1742_weekly_bin753.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 88.8959747029
delta logL = -5.57660939648e-08

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 88.8959536813
delta logL = 2.09657809336e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .69665E-03   1.0000          .0000       .10000E+07
     2 'alpha     '    2.9337       1.0000          .0000       5.0000    
     3 'Normalizat'    .10004E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .36244       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   88.89595     FROM MIGRAD    STATUS=CONVERGED    108 CALLS      299 TOTAL
                     EDM=   .21E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .12490E-07    1082.5        .84235E-03** at limit **
   2  alpha         1.7614        4.0302        .50000        .92371E-12
   3  Normalizat    .10000E-01    .20782E-03    .55749E-02** at limit **
   4  Prefactor     .36229        .36370E-02    .12448E-03   -.99894E-08
                               ERR DEF=  .500    
Final values: 
  norm       = 1.249e-08
  alpha      = 1.76144
  Normalizat = 0.01
  Prefactor  = 0.362285
 **********
 **   18 **HESSE 
 **********

 FCN=   88.89595     FROM HESSE     STATUS=NOT POSDEF    25 CALLS      324 TOTAL
                     EDM=   .10E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .12490E-07    5411.5        .16847E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7614        4.0473        .50000       -.29990    
   3  Normalizat    .10000E-01    .10415E-02    .11150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .36229        .81411E-02    .49791E-05   -1.1878    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.02891e-12
Minuit parameter uncertainties:
  1  0.0164568
  2  572493
  3  5.42946e-10
  4  0.00814116
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/228204': 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): 102
logL (Free Index) = 88.8959514581
delta logL = 2.31890303581e-05

Extracting fit parameters...

4FGL J0738.1+1742
   Spectrum: LogParabola
277         norm:  1.249e-08  1.646e-02  0.000e+00  1.000e+06 ( 1.000e-12)
278        alpha:  1.761e+00  5.725e+05  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:  3.623e-01  8.141e-03  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.000e-02  5.429e-10  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 114.539 17.707

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/228204/cmap_HighResolution_694396801_695001601_4FGL_J0738.1+1742_weekly_bin753.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.86e-01', job_status='DONE', photon_flux_upper_limit='9.57e-04', time_completed='2023-01-10 02:49:49.281737', job_id='228204', GAL2='0.36', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1673347789.28', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.36', dlogl='2.32e-05', ts2='-0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='753' AND source_name='4FGL J0738.1+1742' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jan 10 02:49:49 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 228204: <4FGL_J0738.1+1742_weekly_bin753> in cluster <slac> Done

Job <4FGL_J0738.1+1742_weekly_bin753> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Jan 10 02:40:28 2023
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jan 10 02:43:34 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jan 10 02:43:34 2023
Terminated at Tue Jan 10 02:49:50 2023
Results reported at Tue Jan 10 02:49:50 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0738.1+1742_weekly_bin753 114.539 17.7066 694396801 695001601 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 :                                   365.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             461.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   375 sec.
    Turnaround time :                            562 sec.

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

