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


Performing analysis on: 4FGL_J0037.8+1239_daily_bin1721
RA = 9.4695, Dec = 12.6527
tmin = 685411201, tmax = 685670401
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='48679', job_status='RUN', time_executed='2022-09-24 00:06:25.309351', time_epoch_executed='1664003185.31' WHERE source_name='4FGL J0037.8+1239' and cadence='daily' and bin_id='1721'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/48679

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/48679/ft1_4FGL_J0037.8+1239_daily_bin1721.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/48679/ft2_4FGL_J0037.8+1239_daily_bin1721.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/48679/ft1_4FGL_J0037.8+1239_daily_bin1721.fits outfile=/scratch/kocevski/48679/ft1_filteredMKT_4FGL_J0037.8+1239_daily_bin1721.fits ra=9.4695 dec=12.6527 rad=12.0 tmin=685411201.0 tmax=685670401.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 5.27
user 4.94
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/48679/ft2_4FGL_J0037.8+1239_daily_bin1721.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/48679/ft1_filteredMKT_4FGL_J0037.8+1239_daily_bin1721.fits evtable="EVENTS" outfile="/scratch/kocevski/48679/ft1_filtered_4FGL_J0037.8+1239_daily_bin1721.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.34
sys 0.15

Number of photons that the gtmktime cut: 503

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/48679/ft1_filtered_4FGL_J0037.8+1239_daily_bin1721.fits" evtable="EVENTS" scfile=/scratch/kocevski/48679/ft2_4FGL_J0037.8+1239_daily_bin1721.fits sctable="SC_DATA" outfile=/scratch/kocevski/48679/ltcube_685411201_685670401_4FGL_J0037.8+1239_daily_bin1721.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/48679/ft2_4FGL_J0037.8+1239_daily_bin1721.fits
.....................!
real 17.63
user 17.19
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/48679/ft1_filtered_4FGL_J0037.8+1239_daily_bin1721.fits evtable="EVENTS" scfile=/scratch/kocevski/48679/ft2_4FGL_J0037.8+1239_daily_bin1721.fits sctable="SC_DATA" expcube=/scratch/kocevski/48679/ltcube_685411201_685670401_4FGL_J0037.8+1239_daily_bin1721.fits outfile=/scratch/kocevski/48679/expmap_685411201_685670401_4FGL_J0037.8+1239_daily_bin1721.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/48679/ltcube_685411201_685670401_4FGL_J0037.8+1239_daily_bin1721.fits
.....................!
real 190.93
user 186.10
sys 4.41

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/48679/ft1_filtered_4FGL_J0037.8+1239_daily_bin1721.fits scfile=/scratch/kocevski/48679/ft2_4FGL_J0037.8+1239_daily_bin1721.fits outfile=/scratch/kocevski/48679/cmap_685411201_685670401_4FGL_J0037.8+1239_daily_bin1721.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/48679/ft1_filtered_4FGL_J0037.8+1239_daily_bin1721.fits scfile=/scratch/kocevski/48679/ft2_4FGL_J0037.8+1239_daily_bin1721.fits outfile=/scratch/kocevski/48679/cmap_HighResolution_685411201_685670401_4FGL_J0037.8+1239_daily_bin1721.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.56
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/48679/ft1_filtered_4FGL_J0037.8+1239_daily_bin1721.fits evtable="EVENTS" scfile=/scratch/kocevski/48679/ft2_4FGL_J0037.8+1239_daily_bin1721.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/48679/Model_4FGL_J0037.8+1239_daily_bin1721.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/48679/ft1_filtered_4FGL_J0037.8+1239_daily_bin1721.fits.....................!
real 66.78
user 64.06
sys 1.38

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/48679/ft1_filtered_4FGL_J0037.8+1239_daily_bin1721.fits', '/scratch/kocevski/48679/ft2_4FGL_J0037.8+1239_daily_bin1721.fits', expMap='/scratch/kocevski/48679/expmap_685411201_685670401_4FGL_J0037.8+1239_daily_bin1721.fits', expCube='/scratch/kocevski/48679/ltcube_685411201_685670401_4FGL_J0037.8+1239_daily_bin1721.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/48679/Model_4FGL_J0037.8+1239_daily_bin1721.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/48679/ft1_filtered_4FGL_J0037.8+1239_daily_bin1721.fits
Spacecraft file(s): /scratch/kocevski/48679/ft2_4FGL_J0037.8+1239_daily_bin1721.fits
Exposure map: /scratch/kocevski/48679/expmap_685411201_685670401_4FGL_J0037.8+1239_daily_bin1721.fits
Exposure cube: /scratch/kocevski/48679/ltcube_685411201_685670401_4FGL_J0037.8+1239_daily_bin1721.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/48679/Model_4FGL_J0037.8+1239_daily_bin1721.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) = 5730.25021798

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .71861E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .58054E-03   1.0000          .0000       .10000E+07
     3 'norm      '    .39740E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    18.792       1.0000          .0000       .10000E+07
     5 'Prefactor '    6.4411       1.0000          .0000       .10000E+07
     6 'norm      '    .32342E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    11.695       1.0000          .0000       .10000E+07
     8 'Prefactor '    .85615E-06   1.0000          .0000       .10000E+07
     9 'norm      '    12.602       1.0000          .0000       .10000E+07
    10 'Prefactor '    .26774E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .10238E-01   1.0000          .0000       .10000E+07
    12 'Prefactor '    1.2842       1.0000          .0000       .10000E+07
    13 'norm      '    .70800       1.0000          .0000       .10000E+07
    14 'Prefactor '    .84223E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    635.30       1.0000          .0000       .10000E+07
    16 'Prefactor '    4.8533       1.0000          .0000       .10000E+07
    17 'Normalizat'    1.0827       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .94237       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=   5729.980     FROM MIGRAD    STATUS=CONVERGED    169 CALLS     1365 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16720E-06    10.078        .16986E-05** at limit **
   2  Prefactor     .23470E-06    8.4711       -.12028E-05** at limit **
   3  norm           .0000        1.3311       -.10281E-06** at limit **
   4  Prefactor     18.903        14.526        .53099E-07    .78502E-02
   5  Prefactor     6.5173        5.1748       -.19742E-06   -.62894E-03
   6  norm          .83100E-06    14.601        .51052E-06** at limit **
   7  Prefactor     12.174        29.119        .17636E-05    .61660E-02
   8  Prefactor     .38858E-08    2.8600        .20516E-06** at limit **
   9  norm          12.344        10.101       -.11865E-06   -.56828E-04
  10  Prefactor     .21816E-07    8.4487        .88459E-06** at limit **
  11  Prefactor     .55334E-06    16.776        .10771E-05** at limit **
  12  Prefactor     1.2484        3.2987       -.37962E-06    .84267E-03
  13  norm          .51631        27.316       -.32000E-05    .23571E-01
  14  Prefactor     .50460E-07    15.107       -.81788E-06** at limit **
  15  Prefactor     655.45        206.96       -.60129E-06    .40299E-03
  16  Prefactor     4.8370        11.250       -.21694E-05   -.48592E-03
  17  Normalizat    1.0764        .26348        .11253E-04    .37367E-04
  18  Prefactor     .94463        .17565       -.57977E-05    .27408E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.672e-07
  Prefactor  = 2.34701e-07
  norm       = 0
  Prefactor  = 18.9026
  Prefactor  = 6.51735
  norm       = 8.31002e-07
  Prefactor  = 12.174
  Prefactor  = 3.88578e-09
  norm       = 12.3439
  Prefactor  = 2.18159e-08
  Prefactor  = 5.53335e-07
  Prefactor  = 1.24835
  norm       = 0.516306
  Prefactor  = 5.04596e-08
  Prefactor  = 655.446
  Prefactor  = 4.83696
  Normalizat = 1.07645
  Prefactor  = 0.944626
 **********
 **   18 **HESSE 
 **********

 FCN=   5729.980     FROM HESSE     STATUS=OK           280 CALLS     1645 TOTAL
                     EDM=   .28E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16720E-06    10.895        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .23470E-06    10.489        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm           .0000        1.3311        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     18.903        14.487        .23076E-03   -1.5621    
   5  Prefactor     6.5173        5.1895        .39522E-03   -1.5657    
   6  norm          .83100E-06    18.211        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.174        29.534        .29269E-03   -1.5638    
   8  Prefactor     .38858E-08    9.9370        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          12.344        10.108        .28192E-03   -1.5638    
  10  Prefactor     .21816E-07    10.328        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .55334E-06    19.191        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.2484        3.3405        .97826E-03   -1.5686    
  13  norm          .51631        52.606        .60061E-03   -1.5694    
  14  Prefactor     .50460E-07    15.319        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     655.45        206.29        .39687E-04   -1.5196    
  16  Prefactor     4.8370        11.278        .45638E-03   -1.5664    
  17  Normalizat    1.0764        .22380        .67846E-01   -.90512    
  18  Prefactor     .94463        .14924        .45543E-01   -.94599    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.7659e-07
Minuit parameter uncertainties:
  1  0.00269922
  2  0.00313818
  3  4.44045e-06
  4  14.4874
  5  5.18949
  6  0.00778024
  7  29.5344
  8  0.000392546
  9  10.1081
  10  0.000949063
  11  0.00651737
  12  3.3405
  13  10.4233
  14  0.00175843
  15  206.295
  16  11.2782
  17  0.223998
  18  0.149308
Done.

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

Extracting fit parameters...

4FGL J0037.8+1239
   Spectrum: PowerLaw
160    Prefactor:  3.886e-09  3.925e-04  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:  9.446e-01  1.493e-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.076e+00  2.240e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 9.470 12.653
Photon Flux Upper Limit: 8.85e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.75e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/48679/likelihoodResults_685411201_685670401_4FGL_J0037.8+1239_daily_bin1721.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) = 5730.02866186
delta logL = -0.0485989634544

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5729.90600064
delta logL = 0.0740622565982

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15256       1.0000          .0000       .10000E+07
     2 'Index     '    4.3283       1.0000          .0000       10.000    
     3 'Normalizat'    1.0439       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95622       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=   5729.906     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      220 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .15412        3.8960        .12690E-02** at limit **
   2  Index         4.3234        2.0392        .20331        .32298E-04
   3  Normalizat    1.0439        .24812E-01    .68813E-01   -.61263E-04
   4  Prefactor     .95622        .17301E-01    .45718E-01   -.12354E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.154115
  Index      = 4.32337
  Normalizat = 1.04395
  Prefactor  = 0.956223
 **********
 **   18 **HESSE 
 **********

 FCN=   5729.906     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      253 TOTAL
                     EDM=   .17E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .15412        46.150        .67271E-04   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         4.3234        5.1347        .72295E-02   -.13574    
   3  Normalizat    1.0439        .16065        .30445E-03   -.91572    
   4  Prefactor     .95622        .10891        .21969E-03   -.94203    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.72173e-06
Minuit parameter uncertainties:
  1  5.33388
  2  14.487
  3  0.160724
  4  0.108936
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/48679': 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) = 5729.90599903
delta logL = 0.0740638663428

Extracting fit parameters...

4FGL J0037.8+1239
   Spectrum: PowerLaw
160    Prefactor:  1.541e-01  5.334e+00  0.000e+00  1.000e+06 ( 1.000e-13)
161        Index:  4.323e+00  1.449e+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:  9.562e-01  1.089e-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.044e+00  1.607e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 9.470 12.653

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/48679/cmap_HighResolution_685411201_685670401_4FGL_J0037.8+1239_daily_bin1721.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.75e-03', job_status='DONE', photon_flux_upper_limit='8.85e-08', time_completed='2022-09-24 00:15:14.159976', job_id='48679', GAL2='0.96', fit_tolerance='1e-08', EG2='1.04', EG='1.08', time_epoch_completed='1664003714.16', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='7.41e-02', ts2='0.17', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='1721' AND source_name='4FGL J0037.8+1239' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 24 00:15:14 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 48679: <4FGL_J0037.8+1239_daily_bin1721> in cluster <slac> Done

Job <4FGL_J0037.8+1239_daily_bin1721> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep 24 00:04:55 2022
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 24 00:05:07 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 24 00:05:07 2022
Terminated at Sat Sep 24 00:15:14 2022
Results reported at Sat Sep 24 00:15:14 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0037.8+1239_daily_bin1721 9.4695 12.6527 685411201 685670401 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 :                                   527.11 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             365.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   607 sec.
    Turnaround time :                            619 sec.

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

