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


Performing analysis on: 4FGL_J0037.8+1239_daily_bin1740
RA = 9.4695, Dec = 12.6527
tmin = 690336001, tmax = 690595201
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='822595', job_status='RUN', time_executed='2022-11-20 00:08:14.931185', time_epoch_executed='1668931694.93' WHERE source_name='4FGL J0037.8+1239' and cadence='daily' and bin_id='1740'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/822595

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/822595/ft1_4FGL_J0037.8+1239_daily_bin1740.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/822595/ft2_4FGL_J0037.8+1239_daily_bin1740.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/822595/ft1_4FGL_J0037.8+1239_daily_bin1740.fits outfile=/scratch/kocevski/822595/ft1_filteredMKT_4FGL_J0037.8+1239_daily_bin1740.fits ra=9.4695 dec=12.6527 rad=12.0 tmin=690336001.0 tmax=690595201.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.01
user 2.75
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/822595/ft2_4FGL_J0037.8+1239_daily_bin1740.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/822595/ft2_4FGL_J0037.8+1239_daily_bin1740.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/822595/ft1_filteredMKT_4FGL_J0037.8+1239_daily_bin1740.fits evtable="EVENTS" outfile="/scratch/kocevski/822595/ft1_filtered_4FGL_J0037.8+1239_daily_bin1740.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.51
user 0.33
sys 0.16

Number of photons that the gtmktime cut: 555

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/822595/ft1_filtered_4FGL_J0037.8+1239_daily_bin1740.fits" evtable="EVENTS" scfile=/scratch/kocevski/822595/ft2_4FGL_J0037.8+1239_daily_bin1740.fits sctable="SC_DATA" outfile=/scratch/kocevski/822595/ltcube_690336001_690595201_4FGL_J0037.8+1239_daily_bin1740.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/822595/ft2_4FGL_J0037.8+1239_daily_bin1740.fits
.....................!
real 15.29
user 14.84
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/822595/ft1_filtered_4FGL_J0037.8+1239_daily_bin1740.fits evtable="EVENTS" scfile=/scratch/kocevski/822595/ft2_4FGL_J0037.8+1239_daily_bin1740.fits sctable="SC_DATA" expcube=/scratch/kocevski/822595/ltcube_690336001_690595201_4FGL_J0037.8+1239_daily_bin1740.fits outfile=/scratch/kocevski/822595/expmap_690336001_690595201_4FGL_J0037.8+1239_daily_bin1740.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/822595/ltcube_690336001_690595201_4FGL_J0037.8+1239_daily_bin1740.fits
.....................!
real 192.03
user 185.52
sys 5.76

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 159 point sources and 0 extended sources

Setting source of interest to:
4FGL J0037.8+1239 @ 9.4695 12.6527

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/822595/ft1_filtered_4FGL_J0037.8+1239_daily_bin1740.fits scfile=/scratch/kocevski/822595/ft2_4FGL_J0037.8+1239_daily_bin1740.fits outfile=/scratch/kocevski/822595/cmap_690336001_690595201_4FGL_J0037.8+1239_daily_bin1740.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=9.4695 yref=12.6527 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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/822595/ft1_filtered_4FGL_J0037.8+1239_daily_bin1740.fits scfile=/scratch/kocevski/822595/ft2_4FGL_J0037.8+1239_daily_bin1740.fits outfile=/scratch/kocevski/822595/cmap_HighResolution_690336001_690595201_4FGL_J0037.8+1239_daily_bin1740.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=9.4695 yref=12.6527 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/822595/ft1_filtered_4FGL_J0037.8+1239_daily_bin1740.fits evtable="EVENTS" scfile=/scratch/kocevski/822595/ft2_4FGL_J0037.8+1239_daily_bin1740.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/822595/Model_4FGL_J0037.8+1239_daily_bin1740.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/822595/ft1_filtered_4FGL_J0037.8+1239_daily_bin1740.fits.....................!
real 69.58
user 67.52
sys 1.36

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/822595/ft1_filtered_4FGL_J0037.8+1239_daily_bin1740.fits', '/scratch/kocevski/822595/ft2_4FGL_J0037.8+1239_daily_bin1740.fits', expMap='/scratch/kocevski/822595/expmap_690336001_690595201_4FGL_J0037.8+1239_daily_bin1740.fits', expCube='/scratch/kocevski/822595/ltcube_690336001_690595201_4FGL_J0037.8+1239_daily_bin1740.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/822595/Model_4FGL_J0037.8+1239_daily_bin1740.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0037.8+1239'

4FGL J0037.8+1239
   Spectrum: PowerLaw
160    Prefactor:  4.891e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
161        Index:  2.216e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
162        Scale:  1.310e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/822595/ft1_filtered_4FGL_J0037.8+1239_daily_bin1740.fits
Spacecraft file(s): /scratch/kocevski/822595/ft2_4FGL_J0037.8+1239_daily_bin1740.fits
Exposure map: /scratch/kocevski/822595/expmap_690336001_690595201_4FGL_J0037.8+1239_daily_bin1740.fits
Exposure cube: /scratch/kocevski/822595/ltcube_690336001_690595201_4FGL_J0037.8+1239_daily_bin1740.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/822595/Model_4FGL_J0037.8+1239_daily_bin1740.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) = 6349.78001706

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .30718E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .11955E-02   1.0000          .0000       .10000E+07
     3 'norm      '    2.4789       1.0000          .0000       .10000E+07
     4 'Prefactor '    .42851E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    7.9458       1.0000          .0000       .10000E+07
     6 'norm      '    22.853       1.0000          .0000       .10000E+07
     7 'Prefactor '    .20072E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    21.975       1.0000          .0000       .10000E+07
     9 'norm      '    .96782E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    4.3231       1.0000          .0000       .10000E+07
    11 'Prefactor '    26.954       1.0000          .0000       .10000E+07
    12 'Prefactor '    4.7048       1.0000          .0000       .10000E+07
    13 'norm      '    13.006       1.0000          .0000       .10000E+07
    14 'Prefactor '    1.4583       1.0000          .0000       .10000E+07
    15 'Prefactor '    183.27       1.0000          .0000       .10000E+07
    16 'Prefactor '    10.908       1.0000          .0000       .10000E+07
    17 'Normalizat'    1.1363       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .82352       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5090E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6349.774     FROM MIGRAD    STATUS=CONVERGED    153 CALLS     1325 TOTAL
                     EDM=   .69E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        5.5305        .43059E-06** at limit **
   2  Prefactor      .0000        6.8473        .84952E-06** at limit **
   3  norm          2.4800        2.2207       -.17813E-06    .12913E-03
   4  Prefactor      .0000        2.1241       -.72882E-06** at limit **
   5  Prefactor     7.9644        4.8343       -.51291E-06    .88256E-04
   6  norm          22.828        10.072       -.23030E-06   -.41387E-01
   7  Prefactor      .0000        13.838        .70821E-06** at limit **
   8  Prefactor     22.107        14.353        .92976E-06   -.25992E-01
   9  norm          .55511E-10    6.6307        .60200E-06** at limit **
  10  Prefactor     4.3229        5.3944       -.67802E-08    .78420E-03
  11  Prefactor     27.154        20.569        .97797E-06    .43384E-03
  12  Prefactor     4.7073        3.0052       -.60844E-06    .93776E-04
  13  norm          13.002        11.359       -.46745E-06   -.35697E-02
  14  Prefactor     2.8750        244.07        .14187E-05    .42564E-03
  15  Prefactor     184.44        140.28        .19161E-05   -.74697E-04
  16  Prefactor     10.923        12.845        .74923E-06    .16351E-01
  17  Normalizat    1.1348        .23764        .10321E-05    .71587E-05
  18  Prefactor     .82366        .16217        .84514E-06    .67683E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Prefactor  = 0
  norm       = 2.48002
  Prefactor  = 0
  Prefactor  = 7.96437
  norm       = 22.8281
  Prefactor  = 0
  Prefactor  = 22.1072
  norm       = 5.55112e-11
  Prefactor  = 4.32286
  Prefactor  = 27.154
  Prefactor  = 4.70728
  norm       = 13.002
  Prefactor  = 2.87502
  Prefactor  = 184.442
  Prefactor  = 10.9232
  Normalizat = 1.13479
  Prefactor  = 0.823657
 **********
 **   18 **HESSE 
 **********

 FCN=   6349.774     FROM HESSE     STATUS=OK           286 CALLS     1611 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        5.5240        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor      .0000        6.8363        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.4800        2.2127        .64909E-03   -1.5676    
   4  Prefactor      .0000        2.1235        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.9644        4.8324        .35547E-03   -1.5652    
   6  norm          22.828        14.501        .20923E-03   -1.5612    
   7  Prefactor      .0000        13.829        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     22.107        16.507        .21338E-03   -1.5614    
   9  norm          .55511E-10    6.6289        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.3229        5.4311        .48425E-03   -1.5666    
  11  Prefactor     27.154        20.563        .19265E-03   -1.5604    
  12  Prefactor     4.7073        3.0025        .46369E-03   -1.5665    
  13  norm          13.002        11.387        .27750E-03   -1.5636    
  14  Prefactor     2.8750        242.05        .89090E-03   -1.5674    
  15  Prefactor     184.44        139.79        .73874E-04   -1.5436    
  16  Prefactor     10.923        14.015        .30310E-03   -1.5642    
  17  Normalizat    1.1348        .20315        .64231E-01   -.88642    
  18  Prefactor     .82366        .13957        .44023E-01   -.98862    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.71157e-08
Minuit parameter uncertainties:
  1  2.89393e-06
  2  1.88563e-05
  3  2.21275
  4  2.39718e-07
  5  4.83242
  6  14.5014
  7  3.20123e-05
  8  16.5067
  9  3.20004e-05
  10  5.43109
  11  20.5629
  12  3.00251
  13  11.3875
  14  52.7619
  15  139.795
  16  14.015
  17  0.203291
  18  0.139632
Done.

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

Extracting fit parameters...

4FGL J0037.8+1239
   Spectrum: PowerLaw
160    Prefactor:  2.211e+01  1.651e+01  0.000e+00  1.000e+06 ( 1.000e-13)
161        Index:  2.216e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
162        Scale:  1.310e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
506    Prefactor:  8.237e-01  1.396e-01  0.000e+00  1.000e+01 ( 1.000e+00)
507        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
508        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
505   Normalization:  1.135e+00  2.033e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.21
Ra Dec: 9.470 12.653
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 5.44e-08 +/- 4.06e-08
Energy Flux (Fixed Index): 2.37e-05 +/- 1.77e-05

TS (Fixed Index): 3.21
Ra Dec: 9.470 12.653
Photon Flux Upper Limit: 1.43e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.09e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/822595/likelihoodResults_690336001_690595201_4FGL_J0037.8+1239_daily_bin1740.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): 0
logL (Free Index) = 6349.7711273
delta logL = 0.0032541627852

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6349.7696736
delta logL = 0.00470786912319

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.126       1.0000          .0000       .10000E+07
     2 'Index     '    2.1703       1.0000          .0000       10.000    
     3 'Normalizat'    1.1365       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82291       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5090E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6349.770     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      201 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.126        463.53        .20800E-03    .10847E-02
   2  Index         2.1703        3.4486        .16863        .74288E-04
   3  Normalizat    1.1365        .10482        .64188E-01    .10691E-04
   4  Prefactor     .82292        .61244E-01    .44015E-01    .11555E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.1256
  Index      = 2.17027
  Normalizat = 1.13654
  Prefactor  = 0.822916
 **********
 **   18 **HESSE 
 **********

 FCN=   6349.770     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.126        20.199        .83199E-05   -1.5612    
   2  Index         2.1703        .47650        .61833E-02   -.60158    
   3  Normalizat    1.1365        .22919        .28394E-03   -.88587    
   4  Prefactor     .82292        .16101        .22857E-03   -.98889    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04723e-09
Minuit parameter uncertainties:
  1  20.1995
  2  0.477565
  3  0.229387
  4  0.161099
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/822595': 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) = 6349.7696736
delta logL = 0.00470787047561

Extracting fit parameters...

4FGL J0037.8+1239
   Spectrum: PowerLaw
160    Prefactor:  2.313e+01  2.020e+01  0.000e+00  1.000e+06 ( 1.000e-13)
161        Index:  2.170e+00  4.776e-01  0.000e+00  1.000e+01 (-1.000e+00)
162        Scale:  1.310e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
506    Prefactor:  8.229e-01  1.611e-01  0.000e+00  1.000e+01 ( 1.000e+00)
507        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
508        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
505   Normalization:  1.137e+00  2.294e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.22
Ra Dec: 9.470 12.653
Photon Index (Free Index): 2.17 +/- 0.48
Photon Flux (Free Index): 5.26e-08 +/- 4.27e-08
Energy Flux (Free Index): 2.50e-05 +/- 2.33e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/822595/cmap_HighResolution_690336001_690595201_4FGL_J0037.8+1239_daily_bin1740.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.09e-02', comment='SUCCESS', photon_flux='5.44e-08', energy_flux2='2.50e-05', photon_flux_error='4.06e-08', dlogl='4.71e-03', energy_flux='2.37e-05', photon_flux2='5.26e-08', job_status='DONE', time_completed='2022-11-20 00:16:52.242233', photon_index_error2='0.48', photon_index2='2.17', ts='3.21', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='1.43e-07', energy_flux_error2='2.33e-05', EG='1.13', time_epoch_completed='1668932212.24', return_code='0', job_id='822595', GAL2='0.82', EG2='1.14', return_code2='0', energy_flux_error='1.77e-05', photon_flux_error2='4.27e-08', ts2='3.22', photon_index='2.22' WHERE bin_id='1740' AND source_name='4FGL J0037.8+1239' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Nov 20 00:16:52 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 822595: <4FGL_J0037.8+1239_daily_bin1740> in cluster <slac> Done

Job <4FGL_J0037.8+1239_daily_bin1740> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Nov 20 00:04:59 2022
Job was executed on host(s) <bullet0217>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Nov 20 00:06:29 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Nov 20 00:06:29 2022
Terminated at Sun Nov 20 00:16:53 2022
Results reported at Sun Nov 20 00:16:53 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0037.8+1239_daily_bin1740 9.4695 12.6527 690336001 690595201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0037.8+1239 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   517.55 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             344.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   625 sec.
    Turnaround time :                            714 sec.

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

