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


Performing analysis on: 4FGL_J2334.2+0736_daily_bin1746
RA = 353.557, Dec = 7.602
tmin = 691891201, tmax = 692150401
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='743834', job_status='RUN', time_executed='2022-12-08 01:57:08.913776', time_epoch_executed='1670493428.91' WHERE source_name='4FGL J2334.2+0736' and cadence='daily' and bin_id='1746'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/743834

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/743834/ft1_4FGL_J2334.2+0736_daily_bin1746.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/743834/ft2_4FGL_J2334.2+0736_daily_bin1746.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/743834/ft1_4FGL_J2334.2+0736_daily_bin1746.fits outfile=/scratch/kocevski/743834/ft1_filteredMKT_4FGL_J2334.2+0736_daily_bin1746.fits ra=353.557 dec=7.602 rad=12.0 tmin=691891201.0 tmax=692150401.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 4.71
user 4.48
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/743834/ft2_4FGL_J2334.2+0736_daily_bin1746.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/743834/ft1_filteredMKT_4FGL_J2334.2+0736_daily_bin1746.fits evtable="EVENTS" outfile="/scratch/kocevski/743834/ft1_filtered_4FGL_J2334.2+0736_daily_bin1746.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.50
user 0.34
sys 0.14

Number of photons that the gtmktime cut: 628

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/743834/ft1_filtered_4FGL_J2334.2+0736_daily_bin1746.fits" evtable="EVENTS" scfile=/scratch/kocevski/743834/ft2_4FGL_J2334.2+0736_daily_bin1746.fits sctable="SC_DATA" outfile=/scratch/kocevski/743834/ltcube_691891201_692150401_4FGL_J2334.2+0736_daily_bin1746.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/743834/ft2_4FGL_J2334.2+0736_daily_bin1746.fits
.....................!
real 12.06
user 11.70
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/743834/ft1_filtered_4FGL_J2334.2+0736_daily_bin1746.fits evtable="EVENTS" scfile=/scratch/kocevski/743834/ft2_4FGL_J2334.2+0736_daily_bin1746.fits sctable="SC_DATA" expcube=/scratch/kocevski/743834/ltcube_691891201_692150401_4FGL_J2334.2+0736_daily_bin1746.fits outfile=/scratch/kocevski/743834/expmap_691891201_692150401_4FGL_J2334.2+0736_daily_bin1746.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/743834/ltcube_691891201_692150401_4FGL_J2334.2+0736_daily_bin1746.fits
.....................!
real 189.68
user 185.20
sys 4.11

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/743834/ft1_filtered_4FGL_J2334.2+0736_daily_bin1746.fits scfile=/scratch/kocevski/743834/ft2_4FGL_J2334.2+0736_daily_bin1746.fits outfile=/scratch/kocevski/743834/cmap_691891201_692150401_4FGL_J2334.2+0736_daily_bin1746.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.57
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/743834/ft1_filtered_4FGL_J2334.2+0736_daily_bin1746.fits scfile=/scratch/kocevski/743834/ft2_4FGL_J2334.2+0736_daily_bin1746.fits outfile=/scratch/kocevski/743834/cmap_HighResolution_691891201_692150401_4FGL_J2334.2+0736_daily_bin1746.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.52
user 0.38
sys 0.13

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/743834/ft1_filtered_4FGL_J2334.2+0736_daily_bin1746.fits', '/scratch/kocevski/743834/ft2_4FGL_J2334.2+0736_daily_bin1746.fits', expMap='/scratch/kocevski/743834/expmap_691891201_692150401_4FGL_J2334.2+0736_daily_bin1746.fits', expCube='/scratch/kocevski/743834/ltcube_691891201_692150401_4FGL_J2334.2+0736_daily_bin1746.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/743834/Model_4FGL_J2334.2+0736_daily_bin1746.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/743834/ft1_filtered_4FGL_J2334.2+0736_daily_bin1746.fits
Spacecraft file(s): /scratch/kocevski/743834/ft2_4FGL_J2334.2+0736_daily_bin1746.fits
Exposure map: /scratch/kocevski/743834/expmap_691891201_692150401_4FGL_J2334.2+0736_daily_bin1746.fits
Exposure cube: /scratch/kocevski/743834/ltcube_691891201_692150401_4FGL_J2334.2+0736_daily_bin1746.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/743834/Model_4FGL_J2334.2+0736_daily_bin1746.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) = 6827.77445151

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6325       1.0000          .0000       .10000E+07
     2 'Prefactor '    17.767       1.0000          .0000       .10000E+07
     3 'Prefactor '    .94855E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    .79256E-02   1.0000          .0000       .10000E+07
     5 'norm      '    .24846       1.0000          .0000       .10000E+07
     6 'Prefactor '    .39969E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .15570E-01   1.0000          .0000       .10000E+07
     8 'Prefactor '    64.783       1.0000          .0000       .10000E+07
     9 'norm      '    .72895E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    9.8086       1.0000          .0000       .10000E+07
    11 'Prefactor '    4.5800       1.0000          .0000       .10000E+07
    12 'norm      '    .20171E-02   1.0000          .0000       .10000E+07
    13 'norm      '    7.6766       1.0000          .0000       .10000E+07
    14 'Prefactor '    6.2848       1.0000          .0000       .10000E+07
    15 'Prefactor '    .51241E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    8.7443       1.0000          .0000       .10000E+07
    17 'Prefactor '    13.089       1.0000          .0000       .10000E+07
    18 'Normalizat'    .76944       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1108       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=   6827.768     FROM MIGRAD    STATUS=CONVERGED    121 CALLS     1404 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6202        1.6694        .23476E-07    .37060E-01
   2  Prefactor     17.535        4.5603       -.10165E-06   -.16944E-01
   3  Prefactor      .0000        5.4744       -.10818E-06** at limit **
   4  Prefactor     .83267E-09    8.3256        .14841E-06** at limit **
   5  norm          .25067        .85917       -.57821E-07   -.23759E-02
   6  Prefactor     .55511E-10    5.5501       -.15203E-07** at limit **
   7  Prefactor     .27756E-09    15.262        .23141E-06** at limit **
   8  Prefactor     64.932        4.9065        .52914E-07   -.19128    
   9  norm          .46629E-08    60.938       -.16414E-05** at limit **
  10  Prefactor     9.8383        6.7730       -.21675E-07   -.44301E-03
  11  Prefactor     4.7727        3.7179        .16276E-06    .36854E-01
  12  norm          .16709E-07    13.176        .39933E-07** at limit **
  13  norm          7.6773        1.1150        .62708E-08    .20076E-01
  14  Prefactor     6.2909        4.9222        .64104E-07    .24274E-03
  15  Prefactor     .56954E-07    31.770       -.44877E-06** at limit **
  16  Prefactor     8.6789        1.7773       -.47943E-07   -.32494E-01
  17  Prefactor     13.121        7.9069       -.28966E-07    .73108E-03
  18  Normalizat    .76963        .23028       -.49799E-06   -.99154E-04
  19  Prefactor     1.1105        .15444       -.10086E-05   -.19292E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.62025
  Prefactor  = 17.5347
  Prefactor  = 0
  Prefactor  = 8.32667e-10
  norm       = 0.250667
  Prefactor  = 5.55112e-11
  Prefactor  = 2.77556e-10
  Prefactor  = 64.9324
  norm       = 4.66294e-09
  Prefactor  = 9.83825
  Prefactor  = 4.77269
  norm       = 1.67089e-08
  norm       = 7.67732
  Prefactor  = 6.29086
  Prefactor  = 5.69544e-08
  Prefactor  = 8.67887
  Prefactor  = 13.1209
  Normalizat = 0.769628
  Prefactor  = 1.11048
 **********
 **   18 **HESSE 
 **********

 FCN=   6827.768     FROM HESSE     STATUS=OK           316 CALLS     1720 TOTAL
                     EDM=   .23E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6202        49.128        .82719E-03   -1.5683    
   2  Prefactor     17.535        34.173        .23734E-03   -1.5624    
   3  Prefactor      .0000        5.4892        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .83267E-09    8.3775        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .25067        .85563        .10970E-02   -1.5698    
   6  Prefactor     .55511E-10    5.5754        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .27756E-09    14.869        .17348E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     64.932        55.325        .12425E-03   -1.5547    
   9  norm          .46629E-08    8.1230        .58731E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.8383        7.3059        .31972E-03   -1.5645    
  11  Prefactor     4.7727        28.663        .47011E-03   -1.5664    
  12  norm          .16709E-07    13.199        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          7.6773        18.100        .36170E-03   -1.5653    
  14  Prefactor     6.2909        5.2256        .40017E-03   -1.5658    
  15  Prefactor     .56954E-07    32.110        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.6789        23.807        .33873E-03   -1.5649    
  17  Prefactor     13.121        7.9403        .27661E-03   -1.5636    
  18  Normalizat    .76963        .21029        .76525E-01   -1.0121    
  19  Prefactor     1.1105        .13563        .37190E-01   -.89132    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.28882e-06
Minuit parameter uncertainties:
  1  17.8439
  2  34.1733
  3  2.12642e-05
  4  0.000169091
  5  0.855628
  6  4.19159e-05
  7  0.000126664
  8  55.3254
  9  0.000388151
  10  7.30595
  11  23.3923
  12  0.000938707
  13  18.1
  14  5.2256
  15  0.00270493
  16  23.8071
  17  7.94033
  18  0.210507
  19  0.13567
Done.

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

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  4.773e+00  2.339e+01  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.110e+00  1.357e-01  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:  7.696e-01  2.105e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.05
Ra Dec: 353.557 7.602
Photon Flux Upper Limit: 1.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.15e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/743834/likelihoodResults_691891201_692150401_4FGL_J2334.2+0736_daily_bin1746.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) = 6827.75895053
delta logL = 0.00892143665897

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6827.75817316
delta logL = 0.00969880366847

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1944       1.0000          .0000       .10000E+07
     2 'Index     '    2.7133       1.0000          .0000       10.000    
     3 'Normalizat'    .76645       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1110       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6827.758     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      295 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1507        27.918        .98367E-04    .67007E-03
   2  Index         2.7258        1.9758        .71347E-02    .45678E-04
   3  Normalizat    .76686        .22723        .33930E-03   -.70363E-06
   4  Prefactor     1.1113        .15424        .19432E-03    .16733E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.15068
  Index      = 2.72584
  Normalizat = 0.766858
  Prefactor  = 1.11127
 **********
 **   18 **HESSE 
 **********

 FCN=   6827.758     FROM HESSE     STATUS=OK            27 CALLS      322 TOTAL
                     EDM=   .36E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1507        23.709        .19673E-04   -1.5667    
   2  Index         2.7258        1.8313        .14269E-02   -.47218    
   3  Normalizat    .76686        .22742        .13572E-04   -1.0131    
   4  Prefactor     1.1113        .15427        .38864E-04   -.89107    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.58545e-13
Minuit parameter uncertainties:
  1  19.8403
  2  1.8873
  3  0.227698
  4  0.154334
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/743834': 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) = 6827.75812295
delta logL = 0.00974902085363

Extracting fit parameters...

4FGL J2334.2+0736
   Spectrum: PowerLaw
430    Prefactor:  4.151e+00  1.984e+01  0.000e+00  1.000e+06 ( 1.000e-13)
431        Index:  2.726e+00  1.887e+00  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.111e+00  1.543e-01  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:  7.669e-01  2.277e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.05
Ra Dec: 353.557 7.602

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/743834/cmap_HighResolution_691891201_692150401_4FGL_J2334.2+0736_daily_bin1746.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.15e-03', job_status='DONE', photon_flux_upper_limit='1.05e-07', time_completed='2022-12-08 02:06:38.938360', job_id='743834', GAL2='1.11', fit_tolerance='1e-08', EG2='0.77', EG='0.77', time_epoch_completed='1670493998.94', return_code2='0', ts='0.05', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='9.75e-03', ts2='0.07', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='1746' AND source_name='4FGL J2334.2+0736' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Dec  8 02:06:38 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 743834: <4FGL_J2334.2+0736_daily_bin1746> in cluster <slac> Done

Job <4FGL_J2334.2+0736_daily_bin1746> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Dec  8 01:55:23 2022
Job was executed on host(s) <bullet0076>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Dec  8 01:55:24 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Dec  8 01:55:24 2022
Terminated at Thu Dec  8 02:06:39 2022
Results reported at Thu Dec  8 02:06:39 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2334.2+0736_daily_bin1746 353.557 7.602 691891201 692150401 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 :                                   572.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             300.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   675 sec.
    Turnaround time :                            676 sec.

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

