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


Performing analysis on: 4FGL_J2323.8+4210_weekly_bin741
RA = 350.975, Dec = 42.1826
tmin = 687139201, tmax = 687744001
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='396728', job_status='RUN', time_executed='2022-10-18 01:43:37.122837', time_epoch_executed='1666082617.12' WHERE source_name='4FGL J2323.8+4210' and cadence='weekly' and bin_id='741'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/396728

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/396728/ft1_4FGL_J2323.8+4210_weekly_bin741.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/396728/ft2_4FGL_J2323.8+4210_weekly_bin741.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/396728/ft1_4FGL_J2323.8+4210_weekly_bin741.fits outfile=/scratch/kocevski/396728/ft1_filteredMKT_4FGL_J2323.8+4210_weekly_bin741.fits ra=350.975 dec=42.1826 rad=12.0 tmin=687139201.0 tmax=687744001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 6.59
user 6.32
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/396728/ft2_4FGL_J2323.8+4210_weekly_bin741.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/396728/ft2_4FGL_J2323.8+4210_weekly_bin741.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/396728/ft1_filteredMKT_4FGL_J2323.8+4210_weekly_bin741.fits evtable="EVENTS" outfile="/scratch/kocevski/396728/ft1_filtered_4FGL_J2323.8+4210_weekly_bin741.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.54
user 0.38
sys 0.14

Number of photons that the gtmktime cut: 716

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/396728/ft1_filtered_4FGL_J2323.8+4210_weekly_bin741.fits" evtable="EVENTS" scfile=/scratch/kocevski/396728/ft2_4FGL_J2323.8+4210_weekly_bin741.fits sctable="SC_DATA" outfile=/scratch/kocevski/396728/ltcube_687139201_687744001_4FGL_J2323.8+4210_weekly_bin741.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/396728/ft2_4FGL_J2323.8+4210_weekly_bin741.fits
.....................!
real 27.11
user 26.71
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/396728/ft1_filtered_4FGL_J2323.8+4210_weekly_bin741.fits evtable="EVENTS" scfile=/scratch/kocevski/396728/ft2_4FGL_J2323.8+4210_weekly_bin741.fits sctable="SC_DATA" expcube=/scratch/kocevski/396728/ltcube_687139201_687744001_4FGL_J2323.8+4210_weekly_bin741.fits outfile=/scratch/kocevski/396728/expmap_687139201_687744001_4FGL_J2323.8+4210_weekly_bin741.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/396728/ltcube_687139201_687744001_4FGL_J2323.8+4210_weekly_bin741.fits
.....................!
real 190.31
user 185.26
sys 4.66

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Added 164 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2323.8+4210 @ 350.975 42.1826

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/396728/ft1_filtered_4FGL_J2323.8+4210_weekly_bin741.fits scfile=/scratch/kocevski/396728/ft2_4FGL_J2323.8+4210_weekly_bin741.fits outfile=/scratch/kocevski/396728/cmap_687139201_687744001_4FGL_J2323.8+4210_weekly_bin741.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=350.975 yref=42.1826 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.58
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/396728/ft1_filtered_4FGL_J2323.8+4210_weekly_bin741.fits scfile=/scratch/kocevski/396728/ft2_4FGL_J2323.8+4210_weekly_bin741.fits outfile=/scratch/kocevski/396728/cmap_HighResolution_687139201_687744001_4FGL_J2323.8+4210_weekly_bin741.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=350.975 yref=42.1826 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.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/396728/ft1_filtered_4FGL_J2323.8+4210_weekly_bin741.fits evtable="EVENTS" scfile=/scratch/kocevski/396728/ft2_4FGL_J2323.8+4210_weekly_bin741.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/396728/Model_4FGL_J2323.8+4210_weekly_bin741.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 CTB 109
adding source EG_v02
adding source FHES J2304.0+5406
adding source GAL_V02
Working on...
/scratch/kocevski/396728/ft1_filtered_4FGL_J2323.8+4210_weekly_bin741.fits.....................!
real 100.43
user 99.06
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/396728/ft1_filtered_4FGL_J2323.8+4210_weekly_bin741.fits', '/scratch/kocevski/396728/ft2_4FGL_J2323.8+4210_weekly_bin741.fits', expMap='/scratch/kocevski/396728/expmap_687139201_687744001_4FGL_J2323.8+4210_weekly_bin741.fits', expCube='/scratch/kocevski/396728/ltcube_687139201_687744001_4FGL_J2323.8+4210_weekly_bin741.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/396728/Model_4FGL_J2323.8+4210_weekly_bin741.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2323.8+4210'

4FGL J2323.8+4210
   Spectrum: LogParabola
458         norm:  5.154e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
459        alpha:  1.778e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
460         beta:  6.822e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
461           Eb:  1.948e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/396728/ft1_filtered_4FGL_J2323.8+4210_weekly_bin741.fits
Spacecraft file(s): /scratch/kocevski/396728/ft2_4FGL_J2323.8+4210_weekly_bin741.fits
Exposure map: /scratch/kocevski/396728/expmap_687139201_687744001_4FGL_J2323.8+4210_weekly_bin741.fits
Exposure cube: /scratch/kocevski/396728/ltcube_687139201_687744001_4FGL_J2323.8+4210_weekly_bin741.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/396728/Model_4FGL_J2323.8+4210_weekly_bin741.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) = 7572.57703969

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12130E-03   1.0000          .0000       .10000E+07
     2 'norm      '    .19233E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    .19432E-04   1.0000          .0000       .10000E+07
     4 'norm      '    1.7464       1.0000          .0000       .10000E+07
     5 'Prefactor '    1.7139       1.0000          .0000       .10000E+07
     6 'Prefactor '    .32860E-02   1.0000          .0000       .10000E+07
     7 'norm      '    .26901E-06   1.0000          .0000       .10000E+07
     8 'Prefactor '    .73608E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    .87624E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    .14141E-02   1.0000          .0000       .10000E+07
    11 'norm      '    .16931E-07   1.0000          .0000       .10000E+07
    12 'Prefactor '    .51524E-01   1.0000          .0000       .10000E+07
    13 'norm      '    1.3371       1.0000          .0000       .10000E+07
    14 'norm      '    .15877E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    .52918       1.0000          .0000       .10000E+07
    16 'norm      '    .45247E-06   1.0000          .0000       .10000E+07
    17 'norm      '    .11636E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    20.482       1.0000          .0000       .10000E+07
    19 'Prefactor '    .19132E-01   1.0000          .0000       .10000E+07
    20 'Prefactor '    .10240E-03   1.0000          .0000       .10000E+07
    21 'Normalizat'    1.8434       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .65929       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5540E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7572.562     FROM MIGRAD    STATUS=CONVERGED    177 CALLS     1797 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11047E-07    81.200        .15832E-04** at limit **
   2  norm          .37026E-07    73.811       -.19901E-04** at limit **
   3  Prefactor     .11102E-09    3.0362        .98477E-07** at limit **
   4  norm          1.7453        2.1088        .18788E-06   -.86509E-02
   5  Prefactor     1.7157        4.6428        .29217E-05   -.69250E-03
   6  Prefactor     .12768E-08    34.554        .10709E-04** at limit **
   7  norm          .11102E-09    3.3001        .80884E-06** at limit **
   8  Prefactor     .49960E-09    4.7481        .47259E-06** at limit **
   9  Prefactor     .27756E-09    3.5949        .25544E-05** at limit **
  10  Prefactor     .49960E-08    9.7237        .22468E-05** at limit **
  11  norm          .55511E-10    .93600        .38120E-06** at limit **
  12  Prefactor     .66357E-01    30.675        .34744E-04** at limit **
  13  norm          1.3241        4.9328        .18872E-05   -.15102E-02
  14  norm          .22204E-09    4.5905        .39843E-06** at limit **
  15  Prefactor     .61827        2.1671        .63666E-05   -.36355E-02
  16  norm          .33307E-09    1.1457        .66440E-06** at limit **
  17  norm          .15543E-08    7.5346       -.61004E-06** at limit **
  18  Prefactor     21.300        90.463        .60467E-04   -.89693E-03
  19  Prefactor     .11102E-08    52.095        .52262E-05** at limit **
  20  Prefactor      .0000        5.4990        .53909E-06** at limit **
  21  Normalizat    1.8428        .28099       -.40054E-04    .15435E-03
  22  Prefactor     .65936        .84838E-01   -.44806E-06    .63129E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.10467e-08
  norm       = 3.70259e-08
  Prefactor  = 1.11022e-10
  norm       = 1.74527
  Prefactor  = 1.71566
  Prefactor  = 1.27676e-09
  norm       = 1.11022e-10
  Prefactor  = 4.996e-10
  Prefactor  = 2.77556e-10
  Prefactor  = 4.996e-09
  norm       = 5.55112e-11
  Prefactor  = 0.0663573
  norm       = 1.32409
  norm       = 2.22045e-10
  Prefactor  = 0.61827
  norm       = 3.33067e-10
  norm       = 1.55431e-09
  Prefactor  = 21.3002
  Prefactor  = 1.11022e-09
  Prefactor  = 0
  Normalizat = 1.8428
  Prefactor  = 0.659364
 **********
 **   18 **HESSE 
 **********

 FCN=   7572.562     FROM HESSE     STATUS=OK           384 CALLS     2181 TOTAL
                     EDM=   .57E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11047E-07    81.288        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .37026E-07    74.256        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .11102E-09    3.0396        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.7453        2.1194        .79329E-03   -1.5682    
   5  Prefactor     1.7157        4.6480        .80246E-03   -1.5682    
   6  Prefactor     .12768E-08    34.498        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .11102E-09    3.2581        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .49960E-09    4.7552        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .27756E-09    3.5896        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .49960E-08    9.7379        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .55511E-10    .92582        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .66357E-01    7.3435        .13099E-01   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.3241        14.468        .94813E-03   -1.5685    
  14  norm          .22204E-09    4.5967        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .61827        475.64        .75827E-03   -1.5692    
  16  norm          .33307E-09    1.1462        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .15543E-08    7.5407        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     21.300        89.399        .22103E-03   -1.5616    
  19  Prefactor     .11102E-08    51.602        .17094E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor      .0000        5.4910        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.8428        .25050        .74093E-01   -.68552    
  22  Prefactor     .65936        .73539E-01    .41857E-01   -1.0514    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.66918e-06
Minuit parameter uncertainties:
  1  0.00189671
  2  0.00331523
  3  4.10343e-05
  4  2.11942
  5  4.64801
  6  0.000422019
  7  3.64338e-05
  8  9.71261e-05
  9  6.21674e-05
  10  0.000440121
  11  1.03562e-05
  12  1.39613
  13  8.75365
  14  6.38629e-05
  15  34.2998
  16  4.04557e-05
  17  0.00021639
  18  87.2771
  19  0.000475325
  20  2.17057e-05
  21  0.25068
  22  0.0735497
Done.

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

Extracting fit parameters...

4FGL J2323.8+4210
   Spectrum: LogParabola
458         norm:  2.220e-10  6.386e-05  0.000e+00  1.000e+06 ( 1.000e-13)
459        alpha:  1.778e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
460         beta:  6.822e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
461           Eb:  1.948e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
551    Prefactor:  6.594e-01  7.355e-02  0.000e+00  1.000e+01 ( 1.000e+00)
552        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
553        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
546   Normalization:  1.843e+00  2.507e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 350.975 42.183
Photon Flux Upper Limit: 4.69e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.77e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/396728/likelihoodResults_687139201_687744001_4FGL_J2323.8+4210_weekly_bin741.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) = 7572.66652042
delta logL = -0.104046424475

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7572.562474
delta logL = -7.72524799686e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .22204E-09   1.0000          .0000       .10000E+07
     2 'alpha     '    3.0178       1.0000          .0000       5.0000    
     3 'Normalizat'    1.8428       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65935       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5540E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7572.562     FROM MIGRAD    STATUS=CONVERGED     73 CALLS      220 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .22204E-09    .10282E-01    .42118E-03** at limit **
   2  alpha         .21504        2.5252        .42327       -.35992E-09
   3  Normalizat    1.8428        .78119E-03    .74093E-01   -.45657E-03
   4  Prefactor     .65936        .24320E-03    .41858E-01   -.12676E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 2.22045e-10
  alpha      = 0.215036
  Normalizat = 1.8428
  Prefactor  = 0.659362
 **********
 **   18 **HESSE 
 **********

 FCN=   7572.562     FROM HESSE     STATUS=OK            27 CALLS      247 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .22204E-09    .74915        .73519E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         .21504        2.5988        .50000       -1.1530    
   3  Normalizat    1.8428        .26904        .32778E-03   -.68552    
   4  Prefactor     .65936        .83893E-01    .15899E-03   -1.0514    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.68175e-10
Minuit parameter uncertainties:
  1  2.51816e-05
  2  1.01488
  3  0.269253
  4  0.0839088
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/396728': 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) = 7572.56247399
delta logL = -3.21961124428e-10

Extracting fit parameters...

4FGL J2323.8+4210
   Spectrum: LogParabola
458         norm:  2.220e-10  2.518e-05  0.000e+00  1.000e+06 ( 1.000e-13)
459        alpha:  2.150e-01  1.015e+00  0.000e+00  5.000e+00 ( 1.000e+00)
460         beta:  6.822e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
461           Eb:  1.948e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
551    Prefactor:  6.594e-01  8.391e-02  0.000e+00  1.000e+01 ( 1.000e+00)
552        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
553        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
546   Normalization:  1.843e+00  2.693e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 350.975 42.183

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/396728/cmap_HighResolution_687139201_687744001_4FGL_J2323.8+4210_weekly_bin741.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.77e-05', job_status='DONE', photon_flux_upper_limit='4.69e-08', time_completed='2022-10-18 01:55:18.230656', job_id='396728', GAL2='0.66', fit_tolerance='1e-08', EG2='1.84', EG='1.84', time_epoch_completed='1666083318.23', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.66', dlogl='-3.22e-10', ts2='-0.00', photon_index_error='0.00', photon_index='1.78' WHERE bin_id='741' AND source_name='4FGL J2323.8+4210' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Oct 18 01:55:18 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 396728: <4FGL_J2323.8+4210_weekly_bin741> in cluster <slac> Done

Job <4FGL_J2323.8+4210_weekly_bin741> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Oct 18 01:40:28 2022
Job was executed on host(s) <bullet0245>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Oct 18 01:40:29 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Oct 18 01:40:29 2022
Terminated at Tue Oct 18 01:55:19 2022
Results reported at Tue Oct 18 01:55:19 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2323.8+4210_weekly_bin741 350.975 42.1826 687139201 687744001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2323.8+4210 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   703.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             285.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   889 sec.
    Turnaround time :                            891 sec.

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

