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


Performing analysis on: 4FGL_J2334.2+0736_weekly_bin762
RA = 353.557, Dec = 7.602
tmin = 699840001, tmax = 700444801
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='19959', job_status='RUN', time_executed='2023-03-14 04:41:59.356511', time_epoch_executed='1678794119.36' WHERE source_name='4FGL J2334.2+0736' and cadence='weekly' and bin_id='762'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/19959

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/19959/ft1_4FGL_J2334.2+0736_weekly_bin762.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/19959/ft2_4FGL_J2334.2+0736_weekly_bin762.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/19959/ft1_4FGL_J2334.2+0736_weekly_bin762.fits outfile=/scratch/kocevski/19959/ft1_filteredMKT_4FGL_J2334.2+0736_weekly_bin762.fits ra=353.557 dec=7.602 rad=12.0 tmin=699840001.0 tmax=700444801.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 8.10
user 7.76
sys 0.29

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/19959/ft2_4FGL_J2334.2+0736_weekly_bin762.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/19959/ft2_4FGL_J2334.2+0736_weekly_bin762.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/19959/ft1_filteredMKT_4FGL_J2334.2+0736_weekly_bin762.fits evtable="EVENTS" outfile="/scratch/kocevski/19959/ft1_filtered_4FGL_J2334.2+0736_weekly_bin762.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.16

Number of photons that the gtmktime cut: 1387

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/19959/ft1_filtered_4FGL_J2334.2+0736_weekly_bin762.fits" evtable="EVENTS" scfile=/scratch/kocevski/19959/ft2_4FGL_J2334.2+0736_weekly_bin762.fits sctable="SC_DATA" outfile=/scratch/kocevski/19959/ltcube_699840001_700444801_4FGL_J2334.2+0736_weekly_bin762.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/19959/ft2_4FGL_J2334.2+0736_weekly_bin762.fits
.....................!
real 26.20
user 25.80
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/19959/ft1_filtered_4FGL_J2334.2+0736_weekly_bin762.fits evtable="EVENTS" scfile=/scratch/kocevski/19959/ft2_4FGL_J2334.2+0736_weekly_bin762.fits sctable="SC_DATA" expcube=/scratch/kocevski/19959/ltcube_699840001_700444801_4FGL_J2334.2+0736_weekly_bin762.fits outfile=/scratch/kocevski/19959/expmap_699840001_700444801_4FGL_J2334.2+0736_weekly_bin762.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/19959/ltcube_699840001_700444801_4FGL_J2334.2+0736_weekly_bin762.fits
.....................!
real 191.14
user 185.40
sys 5.32

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 154 point sources and 0 extended sources

Setting source of interest to:
4FGL J2334.2+0736 @ 353.557 7.602

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/19959/ft1_filtered_4FGL_J2334.2+0736_weekly_bin762.fits scfile=/scratch/kocevski/19959/ft2_4FGL_J2334.2+0736_weekly_bin762.fits outfile=/scratch/kocevski/19959/cmap_699840001_700444801_4FGL_J2334.2+0736_weekly_bin762.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=353.557 yref=7.602 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.62
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/19959/ft1_filtered_4FGL_J2334.2+0736_weekly_bin762.fits scfile=/scratch/kocevski/19959/ft2_4FGL_J2334.2+0736_weekly_bin762.fits outfile=/scratch/kocevski/19959/cmap_HighResolution_699840001_700444801_4FGL_J2334.2+0736_weekly_bin762.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=353.557 yref=7.602 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.62
user 0.42
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/19959/ft1_filtered_4FGL_J2334.2+0736_weekly_bin762.fits evtable="EVENTS" scfile=/scratch/kocevski/19959/ft2_4FGL_J2334.2+0736_weekly_bin762.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/19959/Model_4FGL_J2334.2+0736_weekly_bin762.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/19959/ft1_filtered_4FGL_J2334.2+0736_weekly_bin762.fits.....................!
real 150.64
user 148.93
sys 1.33

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/19959/ft1_filtered_4FGL_J2334.2+0736_weekly_bin762.fits', '/scratch/kocevski/19959/ft2_4FGL_J2334.2+0736_weekly_bin762.fits', expMap='/scratch/kocevski/19959/expmap_699840001_700444801_4FGL_J2334.2+0736_weekly_bin762.fits', expCube='/scratch/kocevski/19959/ltcube_699840001_700444801_4FGL_J2334.2+0736_weekly_bin762.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/19959/Model_4FGL_J2334.2+0736_weekly_bin762.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2334.2+0736'

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  5.621e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
431        Index:  2.471e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
432        Scale:  9.656e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/19959/ft1_filtered_4FGL_J2334.2+0736_weekly_bin762.fits
Spacecraft file(s): /scratch/kocevski/19959/ft2_4FGL_J2334.2+0736_weekly_bin762.fits
Exposure map: /scratch/kocevski/19959/expmap_699840001_700444801_4FGL_J2334.2+0736_weekly_bin762.fits
Exposure cube: /scratch/kocevski/19959/ltcube_699840001_700444801_4FGL_J2334.2+0736_weekly_bin762.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/19959/Model_4FGL_J2334.2+0736_weekly_bin762.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) = 15547.7550473

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.814       1.0000          .0000       .10000E+07
     2 'Prefactor '    43.583       1.0000          .0000       .10000E+07
     3 'Prefactor '    .61354       1.0000          .0000       .10000E+07
     4 'Prefactor '    14.541       1.0000          .0000       .10000E+07
     5 'norm      '    3.8027       1.0000          .0000       .10000E+07
     6 'Prefactor '    .14087E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .14200E-04   1.0000          .0000       .10000E+07
     8 'Prefactor '    .19523E-01   1.0000          .0000       .10000E+07
     9 'norm      '    .68068E-06   1.0000          .0000       .10000E+07
    10 'Prefactor '    8.5500       1.0000          .0000       .10000E+07
    11 'Prefactor '    .19973E-06   1.0000          .0000       .10000E+07
    12 'norm      '    7.2289       1.0000          .0000       .10000E+07
    13 'norm      '    15.922       1.0000          .0000       .10000E+07
    14 'Prefactor '    8.9414       1.0000          .0000       .10000E+07
    15 'Prefactor '    .33223E-01   1.0000          .0000       .10000E+07
    16 'Prefactor '    .90719E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    1.3824       1.0000          .0000       .10000E+07
    18 'Normalizat'    .60918       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.2282       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   15547.72     FROM MIGRAD    STATUS=CONVERGED    116 CALLS     1129 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.094        7.8128        .34443E-06   -.12674    
   2  Prefactor     44.134        24.241        .26131E-05   -.41196E-01
   3  Prefactor     .61884        1.7537        .70275E-07    .35127E-02
   4  Prefactor     14.595        5.3813       -.12291E-05   -.35761E-01
   5  norm          3.8039        1.0153        .24650E-07   -.21370E-01
   6  Prefactor     .14655E-07    7.9539        .13262E-06** at limit **
   7  Prefactor     .27756E-09    4.1551        .38418E-07** at limit **
   8  Prefactor     .33307E-09    44.137        .42876E-05** at limit **
   9  norm          .55511E-10    2.8353       -.35389E-07** at limit **
  10  Prefactor     8.5577        5.1272       -.15386E-06   -.80576E-02
  11  Prefactor     .23870E-08    7.2053       -.32334E-06** at limit **
  12  norm          7.2310        7.0216       -.20584E-07   -.15803E-02
  13  norm          15.911        1.1420        .18721E-07   -.96349E-03
  14  Prefactor     8.9485        4.1516        .72463E-07   -.90864E-03
  15  Prefactor     .79570E-06    54.826        .11487E-04** at limit **
  16  Prefactor     .15543E-08    16.079        .11932E-05** at limit **
  17  Prefactor     1.4410        4.0061        .92911E-07   -.54236E-02
  18  Normalizat    .60854        .15660       -.50964E-05   -.25265E-03
  19  Prefactor     1.2281        .10264        .13449E-05   -.41898E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.094
  Prefactor  = 44.1341
  Prefactor  = 0.618842
  Prefactor  = 14.5953
  norm       = 3.80389
  Prefactor  = 1.46549e-08
  Prefactor  = 2.77556e-10
  Prefactor  = 3.33067e-10
  norm       = 5.55112e-11
  Prefactor  = 8.55765
  Prefactor  = 2.38698e-09
  norm       = 7.23101
  norm       = 15.9112
  Prefactor  = 8.94846
  Prefactor  = 7.95697e-07
  Prefactor  = 1.55431e-09
  Prefactor  = 1.44104
  Normalizat = 0.608537
  Prefactor  = 1.22813
 **********
 **   18 **HESSE 
 **********

 FCN=   15547.72     FROM HESSE     STATUS=OK           316 CALLS     1445 TOTAL
                     EDM=   .32E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.094        15.034        .18317E-03   -1.5598    
   2  Prefactor     44.134        25.896        .15149E-03   -1.5575    
   3  Prefactor     .61884        1.7787        .68024E-03   -1.5692    
   4  Prefactor     14.595        11.344        .26240E-03   -1.5632    
   5  norm          3.8039        1.0176        .51738E-04   -1.5669    
   6  Prefactor     .14655E-07    26.641        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .27756E-09    4.1622        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .33307E-09    12.329        .17068E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .55511E-10    2.8362        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.5577        5.1671        .34258E-03   -1.5649    
  11  Prefactor     .23870E-08    7.2682        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          7.2310        7.0249        .37283E-03   -1.5654    
  13  norm          15.911        18.370        .25074E-03   -1.5628    
  14  Prefactor     8.9485        4.8322        .33495E-03   -1.5648    
  15  Prefactor     .79570E-06    16.202        .16285E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .15543E-08    22.156        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.4410        4.0437        .92512E-03   -1.5684    
  18  Normalizat    .60854        .15115        .88853E-01   -1.0762    
  19  Prefactor     1.2281        .93923E-01    .33996E-01   -.85470    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.22729e-06
Minuit parameter uncertainties:
  1  15.0343
  2  25.8963
  3  1.77871
  4  11.3443
  5  1.01756
  6  0.00125013
  7  6.76273e-05
  8  0.00012914
  9  2.27176e-05
  10  5.16709
  11  0.000262324
  12  7.02489
  13  18.3699
  14  4.83223
  15  0.00718107
  16  0.000373377
  17  4.0437
  18  0.151253
  19  0.0939356
Done.

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

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  2.387e-09  2.623e-04  0.000e+00  1.000e+06 ( 1.000e-13)
431        Index:  2.471e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
432        Scale:  9.656e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
502    Prefactor:  1.228e+00  9.394e-02  0.000e+00  1.000e+01 ( 1.000e+00)
503        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
504        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
501   Normalization:  6.085e-01  1.513e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 353.557 7.602
Photon Flux Upper Limit: 5.05e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.92e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/19959/likelihoodResults_699840001_700444801_4FGL_J2334.2+0736_weekly_bin762.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) = 15547.7217787
delta logL = -0.00185660910392

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 15547.7199221
delta logL = -1.96996552404e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14988E-08   1.0000          .0000       .10000E+07
     2 'Index     '    2.7714       1.0000          .0000       10.000    
     3 'Normalizat'    .60854       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2281       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   15547.72     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      224 TOTAL
                     EDM=   .84E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        6.4464        .42118E-03** at limit **
   2  Index         1.5544        .81491        .82056E-05     .0000    
   3  Normalizat    .60854        .94628        .30561E-05   -.12694E-04
   4  Prefactor     1.2281        1.0945       -.22311E-05   -.56515E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.55441
  Normalizat = 0.60854
  Prefactor  = 1.22813
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   15547.72     FROM HESSE     STATUS=FAILED         9 CALLS      233 TOTAL
                     EDM=   .84E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        6.4464        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .22409        1.4186        .82056E-05   -.76027    
   3  Normalizat    .60854        .94628        .30561E-05   -1.0762    
   4  Prefactor     1.2281        1.0945       -.22311E-05   -.85470    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 8.38268e-13
Minuit parameter uncertainties:
  1  5.03078e-06
  2  0.821943
  3  0.973394
  4  1.11586
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/19959': 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): 101
logL (Free Index) = 15547.7199221
delta logL = 2.76486389339e-10

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  0.000e+00  5.031e-06  0.000e+00  1.000e+06 ( 1.000e-13)
431        Index:  1.554e+00  8.219e-01  0.000e+00  1.000e+01 (-1.000e+00)
432        Scale:  9.656e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
502    Prefactor:  1.228e+00  1.116e+00  0.000e+00  1.000e+01 ( 1.000e+00)
503        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
504        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
501   Normalization:  6.085e-01  9.734e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 353.557 7.602

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/19959/cmap_HighResolution_699840001_700444801_4FGL_J2334.2+0736_weekly_bin762.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.92e-03', job_status='DONE', photon_flux_upper_limit='5.05e-08', time_completed='2023-03-14 04:55:50.979117', job_id='19959', GAL2='1.23', fit_tolerance='1e-08', EG2='0.61', EG='0.61', time_epoch_completed='1678794950.98', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.23', dlogl='2.76e-10', ts2='0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='762' AND source_name='4FGL J2334.2+0736' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Mar 14 04:55:51 PDT 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0148>
Subject: Job 19959: <4FGL_J2334.2+0736_weekly_bin762> in cluster <slac> Done

Job <4FGL_J2334.2+0736_weekly_bin762> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Mar 14 04:40:20 2023
Job was executed on host(s) <bullet0148>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Mar 14 04:40:22 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Mar 14 04:40:22 2023
Terminated at Tue Mar 14 04:55:51 2023
Results reported at Tue Mar 14 04:55:51 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2334.2+0736_weekly_bin762 353.557 7.602 699840001 700444801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2334.2+0736 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   832.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             330.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   929 sec.
    Turnaround time :                            931 sec.

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

