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


Performing analysis on: 4FGL_J1213.7+6423_daily_bin1749
RA = 183.437, Dec = 64.3961
tmin = 692668801, tmax = 692928001
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='950522', job_status='RUN', time_executed='2022-12-17 00:41:54.832874', time_epoch_executed='1671266514.83' WHERE source_name='4FGL J1213.7+6423' and cadence='daily' and bin_id='1749'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/950522

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/950522/ft1_4FGL_J1213.7+6423_daily_bin1749.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/950522/ft2_4FGL_J1213.7+6423_daily_bin1749.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/950522/ft1_4FGL_J1213.7+6423_daily_bin1749.fits outfile=/scratch/kocevski/950522/ft1_filteredMKT_4FGL_J1213.7+6423_daily_bin1749.fits ra=183.437 dec=64.3961 rad=12.0 tmin=692668801.0 tmax=692928001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.72
user 3.46
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/950522/ft2_4FGL_J1213.7+6423_daily_bin1749.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/950522/ft2_4FGL_J1213.7+6423_daily_bin1749.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/950522/ft1_filteredMKT_4FGL_J1213.7+6423_daily_bin1749.fits evtable="EVENTS" outfile="/scratch/kocevski/950522/ft1_filtered_4FGL_J1213.7+6423_daily_bin1749.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.33
sys 0.16

Number of photons that the gtmktime cut: 656

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/950522/ft1_filtered_4FGL_J1213.7+6423_daily_bin1749.fits" evtable="EVENTS" scfile=/scratch/kocevski/950522/ft2_4FGL_J1213.7+6423_daily_bin1749.fits sctable="SC_DATA" outfile=/scratch/kocevski/950522/ltcube_692668801_692928001_4FGL_J1213.7+6423_daily_bin1749.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/950522/ft2_4FGL_J1213.7+6423_daily_bin1749.fits
.....................!
real 12.37
user 11.93
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/950522/ft1_filtered_4FGL_J1213.7+6423_daily_bin1749.fits evtable="EVENTS" scfile=/scratch/kocevski/950522/ft2_4FGL_J1213.7+6423_daily_bin1749.fits sctable="SC_DATA" expcube=/scratch/kocevski/950522/ltcube_692668801_692928001_4FGL_J1213.7+6423_daily_bin1749.fits outfile=/scratch/kocevski/950522/expmap_692668801_692928001_4FGL_J1213.7+6423_daily_bin1749.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/950522/ltcube_692668801_692928001_4FGL_J1213.7+6423_daily_bin1749.fits
.....................!
real 191.20
user 185.33
sys 5.51

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

Setting source of interest to:
4FGL J1213.7+6423 @ 183.437 64.3961

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/950522/ft1_filtered_4FGL_J1213.7+6423_daily_bin1749.fits scfile=/scratch/kocevski/950522/ft2_4FGL_J1213.7+6423_daily_bin1749.fits outfile=/scratch/kocevski/950522/cmap_692668801_692928001_4FGL_J1213.7+6423_daily_bin1749.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=183.437 yref=64.3961 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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/950522/ft1_filtered_4FGL_J1213.7+6423_daily_bin1749.fits scfile=/scratch/kocevski/950522/ft2_4FGL_J1213.7+6423_daily_bin1749.fits outfile=/scratch/kocevski/950522/cmap_HighResolution_692668801_692928001_4FGL_J1213.7+6423_daily_bin1749.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=183.437 yref=64.3961 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.37
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/950522/ft1_filtered_4FGL_J1213.7+6423_daily_bin1749.fits evtable="EVENTS" scfile=/scratch/kocevski/950522/ft2_4FGL_J1213.7+6423_daily_bin1749.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/950522/Model_4FGL_J1213.7+6423_daily_bin1749.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/950522/ft1_filtered_4FGL_J1213.7+6423_daily_bin1749.fits.....................!
real 67.67
user 66.26
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/950522/ft1_filtered_4FGL_J1213.7+6423_daily_bin1749.fits', '/scratch/kocevski/950522/ft2_4FGL_J1213.7+6423_daily_bin1749.fits', expMap='/scratch/kocevski/950522/expmap_692668801_692928001_4FGL_J1213.7+6423_daily_bin1749.fits', expCube='/scratch/kocevski/950522/ltcube_692668801_692928001_4FGL_J1213.7+6423_daily_bin1749.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/950522/Model_4FGL_J1213.7+6423_daily_bin1749.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1213.7+6423'

4FGL J1213.7+6423
   Spectrum: PowerLaw
370    Prefactor:  3.253e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
371        Index:  2.471e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
372        Scale:  8.984e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/950522/ft1_filtered_4FGL_J1213.7+6423_daily_bin1749.fits
Spacecraft file(s): /scratch/kocevski/950522/ft2_4FGL_J1213.7+6423_daily_bin1749.fits
Exposure map: /scratch/kocevski/950522/expmap_692668801_692928001_4FGL_J1213.7+6423_daily_bin1749.fits
Exposure cube: /scratch/kocevski/950522/ltcube_692668801_692928001_4FGL_J1213.7+6423_daily_bin1749.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/950522/Model_4FGL_J1213.7+6423_daily_bin1749.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) = 7057.07928322

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.3267       1.0000          .0000       .10000E+07
     2 'Prefactor '    .22793       1.0000          .0000       .10000E+07
     3 'Prefactor '    .13061E-03   1.0000          .0000       .10000E+07
     4 'norm      '    2.9880       1.0000          .0000       .10000E+07
     5 'norm      '    .43465E-07   1.0000          .0000       .10000E+07
     6 'Prefactor '    .28362E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .99977E-05   1.0000          .0000       .10000E+07
     8 'Prefactor '    33.436       1.0000          .0000       .10000E+07
     9 'Prefactor '    .97582E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    4.8653       1.0000          .0000       .10000E+07
    11 'norm      '    .15565E-02   1.0000          .0000       .10000E+07
    12 'norm      '    .56947E-04   1.0000          .0000       .10000E+07
    13 'Prefactor '    .58207E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    .10115E-03   1.0000          .0000       .10000E+07
    15 'norm      '    .17592E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    5.7797       1.0000          .0000       .10000E+07
    17 'Prefactor '    16.215       1.0000          .0000       .10000E+07
    18 'norm      '    2.8203       1.0000          .0000       .10000E+07
    19 'Prefactor '    1.9189       1.0000          .0000       .10000E+07
    20 'norm      '    2.4591       1.0000          .0000       .10000E+07
    21 'Prefactor '    26.812       1.0000          .0000       .10000E+07
    22 'Prefactor '    .59285E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    .22931E-02   1.0000          .0000       .10000E+07
    24 'Prefactor '    .13769E-02   1.0000          .0000       .10000E+07
    25 'Prefactor '    .29147E-02   1.0000          .0000       .10000E+07
    26 'Prefactor '    .50385E-04   1.0000          .0000       .10000E+07
    27 'Prefactor '    14.895       1.0000          .0000       .10000E+07
    28 'Normalizat'    1.0242       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0013       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7057.075     FROM MIGRAD    STATUS=CONVERGED    163 CALLS     2614 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.3259        2.8793       -.27237E-07   -.29504E-02
   2  Prefactor     .22015E-05    31.628        .31191E-06** at limit **
   3  Prefactor      .0000        2.3248        .74420E-07** at limit **
   4  norm          2.9878        .76949        .17408E-07    .14020E-01
   5  norm          .55511E-10    .78790       -.59487E-07** at limit **
   6  Prefactor     .42633E-07    4.5940        .64653E-07** at limit **
   7  Prefactor      .0000        2.3864        .67997E-07** at limit **
   8  Prefactor     33.513        4.7481       -.15010E-07    .16035E-01
   9  Prefactor     .72164E-09    3.9476       -.83068E-09** at limit **
  10  Prefactor     4.8983        3.6199        .33901E-07    .18947E-02
  11  norm          .14361E-06    3.5022       -.75532E-07** at limit **
  12  norm          .33307E-09    3.0869       -.36476E-07** at limit **
  13  Prefactor     .55511E-10    2.7308       -.90383E-08** at limit **
  14  Prefactor     .29038E-06    4.2410       -.68105E-07** at limit **
  15  norm          .68279E-08    4.5249        .46110E-07** at limit **
  16  Prefactor     6.0337        19.898        .12717E-06   -.64870E-01
  17  Prefactor     16.208        3.1153        .97520E-08    .37670E-03
  18  norm          2.8198        2.8392       -.27332E-07   -.24447E-02
  19  Prefactor     1.9243        3.0440        .31519E-07    .53631E-03
  20  norm          2.4586        1.5535       -.24251E-07   -.56183E-02
  21  Prefactor     26.252        31.975        .16399E-07   -.65426E-01
  22  Prefactor     .38303E-08    4.6687       -.26629E-07** at limit **
  23  Prefactor     .41783E-06    13.396       -.53412E-07** at limit **
  24  Prefactor     .28921E-06    6.1976        .78696E-08** at limit **
  25  Prefactor     .11657E-08    4.2748       -.50175E-07** at limit **
  26  Prefactor     .69500E-07    4.3944       -.96694E-07** at limit **
  27  Prefactor     14.876        1.8449       -.71562E-08    .74363E-02
  28  Normalizat    1.0244        .17416        .34371E-06   -.37891E-03
  29  Prefactor     1.0011        .20861       -.25353E-05   -.37038E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.32594
  Prefactor  = 2.20152e-06
  Prefactor  = 0
  norm       = 2.98784
  norm       = 5.55112e-11
  Prefactor  = 4.26326e-08
  Prefactor  = 0
  Prefactor  = 33.5126
  Prefactor  = 7.21645e-10
  Prefactor  = 4.89834
  norm       = 1.43607e-07
  norm       = 3.33067e-10
  Prefactor  = 5.55112e-11
  Prefactor  = 2.90379e-07
  norm       = 6.82787e-09
  Prefactor  = 6.03367
  Prefactor  = 16.2075
  norm       = 2.8198
  Prefactor  = 1.9243
  norm       = 2.45856
  Prefactor  = 26.2517
  Prefactor  = 3.83027e-09
  Prefactor  = 4.17832e-07
  Prefactor  = 2.89213e-07
  Prefactor  = 1.16573e-09
  Prefactor  = 6.95e-08
  Prefactor  = 14.8764
  Normalizat = 1.02444
  Prefactor  = 1.00112
 **********
 **   18 **HESSE 
 **********

 FCN=   7057.075     FROM HESSE     STATUS=OK           607 CALLS     3221 TOTAL
                     EDM=   .24E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.3259        2.8849        .55472E-03   -1.5671    
   2  Prefactor     .22015E-05    41.373        .11298E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor      .0000        2.3207        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.9878        .77029        .58703E-03   -1.5673    
   5  norm          .55511E-10    .78486        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .42633E-07    6.9693        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        2.3808        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     33.513        22.531        .17296E-03   -1.5592    
   9  Prefactor     .72164E-09    10.544        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.8983        3.6224        .45580E-03   -1.5664    
  11  norm          .14361E-06    13.064        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .33307E-09    3.0655        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .55511E-10    2.7287        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .29038E-06    12.080        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .68279E-08    .91727        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.0337        123.51        .41753E-03   -1.5659    
  17  Prefactor     16.208        20.011        .24846E-03   -1.5627    
  18  norm          2.8198        2.8391        .60538E-03   -1.5674    
  19  Prefactor     1.9243        3.0672        .74988E-03   -1.5680    
  20  norm          2.4586        1.5501        .65193E-03   -1.5677    
  21  Prefactor     26.252        33.567        .19316E-03   -1.5605    
  22  Prefactor     .38303E-08    7.4748        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .41783E-06    14.700        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .28921E-06    9.8941        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .11657E-08    4.2354        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .69500E-07    13.210        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     14.876        28.535        .25926E-03   -1.5631    
  28  Normalizat    1.0244        .15212        .42799E-01   -.92216    
  29  Prefactor     1.0011        .17945        .45222E-01   -.92692    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.43175e-06
Minuit parameter uncertainties:
  1  2.88488
  2  0.0190876
  3  7.34961e-06
  4  0.770294
  5  1.52565e-05
  6  0.00108992
  7  3.2236e-06
  8  22.531
  9  0.00017674
  10  3.6224
  11  0.00273937
  12  6.17916e-05
  13  1.94976e-05
  14  0.00374589
  15  0.00015802
  16  54.5985
  17  20.0107
  18  2.83907
  19  3.06724
  20  1.55006
  21  33.5677
  22  0.000338373
  23  0.00495665
  24  0.00338313
  25  0.000140926
  26  0.00191626
  27  28.5348
  28  0.152185
  29  0.179558
Done.

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

Extracting fit parameters...

4FGL J1213.7+6423
   Spectrum: PowerLaw
370    Prefactor:  1.621e+01  2.001e+01  0.000e+00  1.000e+06 ( 1.000e-13)
371        Index:  2.471e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
372        Scale:  8.984e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
703    Prefactor:  1.001e+00  1.796e-01  0.000e+00  1.000e+01 ( 1.000e+00)
704        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
705        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
702   Normalization:  1.024e+00  1.522e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.84
Ra Dec: 183.437 64.396
Photon Flux Upper Limit: 9.20e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.14e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/950522/likelihoodResults_692668801_692928001_4FGL_J1213.7+6423_daily_bin1749.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) = 7056.69297901
delta logL = 0.382484889647

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7056.67730745
delta logL = 0.398156450427

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7056.677     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      331 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .52821        7.4209        .74897E-03    .99656E-02
   2  Index         4.7955        2.9095        .11220        .14851E-03
   3  Normalizat    .96997        .36903E-01    .45789E-01   -.24045E-04
   4  Prefactor     1.0540        .44318E-01    .59542E-01   -.75955E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.52821
  Index      = 4.79546
  Normalizat = 0.969974
  Prefactor  = 1.05403
 **********
 **   18 **HESSE 
 **********

 FCN=   7056.677     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      364 TOTAL
                     EDM=   .78E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .52821        18.119        .49514E-05   -1.5693    
   2  Index         4.7955        7.2527        .56490E-02   -.40920E-01
   3  Normalizat    .96997        .14500        .22817E-03   -.94043    
   4  Prefactor     1.0540        .17114        .26331E-03   -.90949    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.79727e-07
Minuit parameter uncertainties:
  1  6.18724
  2  5.93281
  3  0.145055
  4  0.171224
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/950522': 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) = 7056.67730211
delta logL = 0.39816178724

Extracting fit parameters...

4FGL J1213.7+6423
   Spectrum: PowerLaw
370    Prefactor:  5.282e-01  6.187e+00  0.000e+00  1.000e+06 ( 1.000e-13)
371        Index:  4.795e+00  5.933e+00  0.000e+00  1.000e+01 (-1.000e+00)
372        Scale:  8.984e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
703    Prefactor:  1.054e+00  1.712e-01  0.000e+00  1.000e+01 ( 1.000e+00)
704        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
705        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
702   Normalization:  9.700e-01  1.451e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.76
Ra Dec: 183.437 64.396
Photon Index (Free Index): 4.80 +/- 5.93
Photon Flux (Free Index): 5.23e-08 +/- 4.46e-08
Energy Flux (Free Index): 7.08e-06 +/- 8.04e-06

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/950522/cmap_HighResolution_692668801_692928001_4FGL_J1213.7+6423_daily_bin1749.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.14e-03', comment='SUCCESS', energy_flux2='7.08e-06', dlogl='3.98e-01', photon_flux2='5.23e-08', job_status='DONE', time_completed='2022-12-17 00:56:38.580678', photon_index_error2='5.93', photon_index2='4.80', ts='0.84', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='9.20e-08', energy_flux_error2='8.04e-06', EG='1.02', time_epoch_completed='1671267398.58', return_code='0', job_id='950522', GAL2='1.05', EG2='0.97', return_code2='102', photon_flux_error2='4.46e-08', ts2='1.76', photon_index='2.47' WHERE bin_id='1749' AND source_name='4FGL J1213.7+6423' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Dec 17 00:56:38 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 950522: <4FGL_J1213.7+6423_daily_bin1749> in cluster <slac> Done

Job <4FGL_J1213.7+6423_daily_bin1749> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Dec 17 00:40:17 2022
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Dec 17 00:40:18 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Dec 17 00:40:18 2022
Terminated at Sat Dec 17 00:56:39 2022
Results reported at Sat Dec 17 00:56:39 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1213.7+6423_daily_bin1749 183.437 64.3961 692668801 692928001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1213.7+6423 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   884.10 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             327.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   980 sec.
    Turnaround time :                            982 sec.

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

