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 79 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J1412.9+5018_daily_bin1693
RA = 213.241, Dec = 50.301
tmin = 678153601, tmax = 678412801
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='541080', job_status='RUN', time_executed='2022-07-02 02:33:03.189199', time_epoch_executed='1656754383.19' WHERE source_name='4FGL J1412.9+5018' and cadence='daily' and bin_id='1693'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/541080

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/541080/ft1_4FGL_J1412.9+5018_daily_bin1693.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/541080/ft2_4FGL_J1412.9+5018_daily_bin1693.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/541080/ft1_4FGL_J1412.9+5018_daily_bin1693.fits outfile=/scratch/kocevski/541080/ft1_filteredMKT_4FGL_J1412.9+5018_daily_bin1693.fits ra=213.241 dec=50.301 rad=12.0 tmin=678153601.0 tmax=678412801.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.36
user 4.05
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/541080/ft2_4FGL_J1412.9+5018_daily_bin1693.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/541080/ft2_4FGL_J1412.9+5018_daily_bin1693.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/541080/ft1_filteredMKT_4FGL_J1412.9+5018_daily_bin1693.fits evtable="EVENTS" outfile="/scratch/kocevski/541080/ft1_filtered_4FGL_J1412.9+5018_daily_bin1693.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.34
sys 0.15

Number of photons that the gtmktime cut: 543

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/541080/ft1_filtered_4FGL_J1412.9+5018_daily_bin1693.fits" evtable="EVENTS" scfile=/scratch/kocevski/541080/ft2_4FGL_J1412.9+5018_daily_bin1693.fits sctable="SC_DATA" outfile=/scratch/kocevski/541080/ltcube_678153601_678412801_4FGL_J1412.9+5018_daily_bin1693.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/541080/ft2_4FGL_J1412.9+5018_daily_bin1693.fits
.....................!
real 15.62
user 14.95
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/541080/ft1_filtered_4FGL_J1412.9+5018_daily_bin1693.fits evtable="EVENTS" scfile=/scratch/kocevski/541080/ft2_4FGL_J1412.9+5018_daily_bin1693.fits sctable="SC_DATA" expcube=/scratch/kocevski/541080/ltcube_678153601_678412801_4FGL_J1412.9+5018_daily_bin1693.fits outfile=/scratch/kocevski/541080/expmap_678153601_678412801_4FGL_J1412.9+5018_daily_bin1693.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/541080/ltcube_678153601_678412801_4FGL_J1412.9+5018_daily_bin1693.fits
.....................!
real 196.47
user 187.68
sys 5.09

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

Setting source of interest to:
4FGL J1412.9+5018 @ 213.241 50.301

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/541080/ft1_filtered_4FGL_J1412.9+5018_daily_bin1693.fits scfile=/scratch/kocevski/541080/ft2_4FGL_J1412.9+5018_daily_bin1693.fits outfile=/scratch/kocevski/541080/cmap_678153601_678412801_4FGL_J1412.9+5018_daily_bin1693.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=213.241 yref=50.301 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.59
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/541080/ft1_filtered_4FGL_J1412.9+5018_daily_bin1693.fits scfile=/scratch/kocevski/541080/ft2_4FGL_J1412.9+5018_daily_bin1693.fits outfile=/scratch/kocevski/541080/cmap_HighResolution_678153601_678412801_4FGL_J1412.9+5018_daily_bin1693.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=213.241 yref=50.301 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.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/541080/ft1_filtered_4FGL_J1412.9+5018_daily_bin1693.fits evtable="EVENTS" scfile=/scratch/kocevski/541080/ft2_4FGL_J1412.9+5018_daily_bin1693.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/541080/Model_4FGL_J1412.9+5018_daily_bin1693.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/541080/ft1_filtered_4FGL_J1412.9+5018_daily_bin1693.fits.....................!
real 50.04
user 48.05
sys 1.40

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/541080/ft1_filtered_4FGL_J1412.9+5018_daily_bin1693.fits', '/scratch/kocevski/541080/ft2_4FGL_J1412.9+5018_daily_bin1693.fits', expMap='/scratch/kocevski/541080/expmap_678153601_678412801_4FGL_J1412.9+5018_daily_bin1693.fits', expCube='/scratch/kocevski/541080/ltcube_678153601_678412801_4FGL_J1412.9+5018_daily_bin1693.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/541080/Model_4FGL_J1412.9+5018_daily_bin1693.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1412.9+5018'

4FGL J1412.9+5018
   Spectrum: PowerLaw
332    Prefactor:  5.555e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
333        Index:  2.665e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
334        Scale:  6.514e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/541080/ft1_filtered_4FGL_J1412.9+5018_daily_bin1693.fits
Spacecraft file(s): /scratch/kocevski/541080/ft2_4FGL_J1412.9+5018_daily_bin1693.fits
Exposure map: /scratch/kocevski/541080/expmap_678153601_678412801_4FGL_J1412.9+5018_daily_bin1693.fits
Exposure cube: /scratch/kocevski/541080/ltcube_678153601_678412801_4FGL_J1412.9+5018_daily_bin1693.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/541080/Model_4FGL_J1412.9+5018_daily_bin1693.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) = 5979.5096982

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    93.736       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .28634E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .27134       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    78.563       1.0000         .10000E-03   10000.    
     7 'Prefactor '    70.678       1.0000         .10000E-03   10000.    
     8 'norm      '    1.9153       1.0000         .10000E-03   10000.    
     9 'norm      '    .10619E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .56036       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    62.195       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.9481       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.3018       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .48926E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .62866       1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.507       1.0000         .10000E-03   10000.    
    21 'Prefactor '    26.700       1.0000         .10000E-03   10000.    
    22 'Prefactor '    30.777       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.0231       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    10.190       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    5.6461       1.0000         .10000E-03   10000.    
    33 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    34 'Normalizat'    .75589       1.0000         .10000E-01   10.000    
    35 'Prefactor '    1.1038       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6690E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5979.477     FROM MIGRAD    STATUS=FAILED      1849 CALLS     6071 TOTAL
                     EDM=   .41E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.2619        .84624E-03** at limit **
   2  Prefactor     93.758        45.097        .41511E-04    .19445E-04
   3  Prefactor     .10000E-03    102.35        .49299E-02** at limit **
   4  Prefactor     .21270        36.536        .11733        .11573E-03
   5  norm          .10000E-03    3.4889        .27778E-03** at limit **
   6  Prefactor     78.560        60.177        .45308E-04   -.45266E-04
   7  Prefactor     70.640        48.143        .47750E-04   -.12619E-04
   8  norm          1.9158        1.5158        .80459E-04    .35466E-04
   9  norm          .10000E-03    52.447        .18142E-02** at limit **
  10  norm          .10000E-03    1.6440        .96329E-03** at limit **
  11  norm          .55508        28.950        .42058E-02    .18783E-02
  12  Prefactor     .10000E-03    170.39        .18142E-02** at limit **
  13  Prefactor     62.205        52.262        .50881E-04    .35750E-06
  14  Prefactor     .10000E-03    9.2559        .18142E-02** at limit **
  15  Prefactor     .10000E-03    193.44        .36285E-03** at limit **
  16  Prefactor     4.9477        4.3994        .14719E-03    .50283E-04
  17  Prefactor     7.3093        16.280        .14843E-03    .22211E-05
  18  Prefactor     .10004E-03    71.354        .10240    ** at limit **
  19  Prefactor     .62924        2.4679        .20760E-03   -.14841E-04
  20  Prefactor     16.469        31.333        .98579E-04   -.54549E-04
  21  Prefactor     26.699        21.788        .77528E-04   -.21996E-05
  22  Prefactor     30.773        24.831        .72223E-04    .14010E-04
  23  Prefactor     .10000E-03    19.172        .18142E-02** at limit **
  24  Prefactor     8.0252        21.855        .14155E-03    .10200E-04
  25  Prefactor     .10000E-03    16.318        .18142E-02** at limit **
  26  Prefactor     .10000E-03    19.856        .18142E-02** at limit **
  27  Prefactor     10.191        11.921        .12552E-03    .48546E-04
  28  Prefactor     .10000E-03    18.247        .18142E-02** at limit **
  29  norm          .10000E-03    .40757        .47870E-03** at limit **
  30  Prefactor     .10000E-03    16.082        .36285E-03** at limit **
  31  Prefactor     .10000E-03    3.7181        .14449E-02** at limit **
  32  Prefactor     5.6467        5.3300        .16720E-03    .56027E-04
  33  norm          .10000E-03    2.4398        .11702E-02** at limit **
  34  Normalizat    .75561        .20465        .24665E-03    .10693E-04
  35  Prefactor     1.1041        .21968        .24792E-03    .20681E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5979.477     FROM SIMPLEX   STATUS=UNCHANGED   2112 CALLS     8183 TOTAL
                     EDM=   .20E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.2619        .13139E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     93.758        45.097        .26984E-06   -1.3768    
   3  Prefactor     .10000E-03    102.35        .72297E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .21270        36.536        .30851E-06   -1.5616    
   5  norm          .10000E-03    3.4889        .14198E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     78.560        60.177        .27343E-06   -1.3933    
   7  Prefactor     70.640        48.143        .27488E-06   -1.4025    
   8  norm          1.9158        1.5158        .30238E-06   -1.5431    
   9  norm          .10000E-03    52.447        .76084E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.6440        .17197E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .55508        28.950        .30551E-06   -1.5559    
  12  Prefactor     .10000E-03    170.39        .10182E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     62.205        52.262        .27686E-06   -1.4129    
  14  Prefactor     .10000E-03    9.2559        .36964E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    193.44        .64180E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.9477        4.3994        .29927E-06   -1.5263    
  17  Prefactor     7.3093        16.280        .29994E-06   -1.5167    
  18  Prefactor     .10004E-03    71.354        .34773E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .62924        2.4679        .30827E-06   -1.5549    
  20  Prefactor     16.469        31.333        .30306E-06   -1.4896    
  21  Prefactor     26.699        21.788        .29657E-06   -1.4674    
  22  Prefactor     30.773        24.831        .29355E-06   -1.4598    
  23  Prefactor     .10000E-03    19.172        .42123E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     8.0252        21.855        .29619E-06   -1.5141    
  25  Prefactor     .10000E-03    16.318        .47550E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    19.856        .61025E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     10.191        11.921        .29540E-06   -1.5069    
  28  Prefactor     .10000E-03    18.247        .26474E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    .40757        .25594E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    16.082        .21382E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    3.7181        .56071E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     5.6467        5.3300        .29852E-06   -1.5233    
  33  norm          .10000E-03    2.4398        .29720E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    .75561        .20465        .19936E-06   -1.0174    
  35  Prefactor     1.1041        .21968        .17506E-06   -.89334    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5979.477     FROM MIGRAD    STATUS=CONVERGED    762 CALLS     8945 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.2620        .16925E-03** at limit **
   2  Prefactor     93.758        45.050        .83021E-05    .46559E-05
   3  Prefactor     .10000E-03    104.85        .19719E-03** at limit **
   4  Prefactor     .21271        35.065        .12079        .11091E-03
   5  norm          .10000E-03    3.4890        .55557E-04** at limit **
   6  Prefactor     78.560        60.145        .90616E-05   -.14303E-04
   7  Prefactor     70.640        48.146        .19100E-05   -.47618E-05
   8  norm          1.9158        1.5157        .32184E-05    .17662E-04
   9  norm          .10000E-03    52.451        .36285E-03** at limit **
  10  norm          .10000E-03    1.6442        .19266E-03** at limit **
  11  norm          .55509        29.152        .84116E-03    .35411E-05
  12  Prefactor     .10000E-03    170.39        .36285E-03** at limit **
  13  Prefactor     62.205        52.248        .10176E-04    .22344E-06
  14  Prefactor     .10000E-03    9.2561        .36285E-03** at limit **
  15  Prefactor     .10000E-03    193.45        .72569E-04** at limit **
  16  Prefactor     4.9477        4.3992        .58875E-05    .17379E-04
  17  Prefactor     7.3093        16.280        .59374E-05    .38295E-05
  18  Prefactor     .10003E-03    64.338        .10667    ** at limit **
  19  Prefactor     .62924        2.4650        .83038E-05   -.49287E-05
  20  Prefactor     16.469        30.754        .39432E-05    .46707E-04
  21  Prefactor     26.699        21.788        .31011E-05   -.73319E-06
  22  Prefactor     30.773        24.819        .28889E-05    .47224E-05
  23  Prefactor     .10000E-03    19.172        .36285E-03** at limit **
  24  Prefactor     8.0251        21.857        .56621E-05    .96378E-05
  25  Prefactor     .10000E-03    16.318        .36285E-03** at limit **
  26  Prefactor     .10000E-03    19.856        .36285E-03** at limit **
  27  Prefactor     10.191        11.920        .50209E-05    .16303E-04
  28  Prefactor     .10000E-03    18.260        .36285E-03** at limit **
  29  norm          .10000E-03    .40758        .95739E-04** at limit **
  30  Prefactor     .10000E-03    16.083        .72569E-04** at limit **
  31  Prefactor     .10000E-03    3.7195        .28897E-03** at limit **
  32  Prefactor     5.6467        5.3298        .66880E-05    .18358E-04
  33  norm          .10000E-03    2.4404        .23403E-03** at limit **
  34  Normalizat    .75561        .20485        .98660E-05    .25581E-04
  35  Prefactor     1.1041        .21991        .99169E-05    .22469E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 93.7575
  Prefactor  = 0.0001
  Prefactor  = 0.212706
  norm       = 0.0001
  Prefactor  = 78.5601
  Prefactor  = 70.6402
  norm       = 1.9158
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.555085
  Prefactor  = 0.0001
  Prefactor  = 62.2051
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.94767
  Prefactor  = 7.3093
  Prefactor  = 0.000100028
  Prefactor  = 0.629241
  Prefactor  = 16.469
  Prefactor  = 26.6993
  Prefactor  = 30.7726
  Prefactor  = 0.0001
  Prefactor  = 8.02514
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.1912
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.64671
  norm       = 0.0001
  Normalizat = 0.755608
  Prefactor  = 1.10415  **********
 **   18 **HESSE 
 **********

 FCN=   5979.477     FROM HESSE     STATUS=OK           758 CALLS     9703 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.2620        .33850E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     93.758        45.084        .16604E-05   -1.3768    
   3  Prefactor     .10000E-03    104.85        .39439E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .21271        35.435        .11991       -1.5616    
   5  norm          .10000E-03    3.4891        .11111E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     78.560        60.132        .18123E-05   -1.3933    
   7  Prefactor     70.640        48.217        .38200E-06   -1.4025    
   8  norm          1.9158        1.5160        .64367E-06   -1.5431    
   9  norm          .10000E-03    52.451        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.6442        .38531E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .55509        29.145        .33646E-04   -1.5559    
  12  Prefactor     .10000E-03    170.39        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     62.205        52.309        .20352E-05   -1.4129    
  14  Prefactor     .10000E-03    9.2561        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    193.57        .14514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.9477        4.4001        .11775E-05   -1.5263    
  17  Prefactor     7.3093        16.291        .11875E-05   -1.5167    
  18  Prefactor     .10003E-03    66.985        .10502       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .62924        2.4634        .16608E-05   -1.5549    
  20  Prefactor     16.469        30.985        .78863E-06   -1.4896    
  21  Prefactor     26.699        21.838        .62023E-06   -1.4674    
  22  Prefactor     30.773        24.794        .57778E-06   -1.4598    
  23  Prefactor     .10000E-03    19.172        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     8.0251        21.860        .11324E-05   -1.5141    
  25  Prefactor     .10000E-03    16.318        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    19.856        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     10.191        11.928        .10042E-05   -1.5069    
  28  Prefactor     .10000E-03    18.260        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    .40758        .19148E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    16.084        .14514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    3.7196        .57794E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     5.6467        5.3305        .13376E-05   -1.5233    
  33  norm          .10000E-03    2.4404        .46807E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Normalizat    .75561        .20494        .19732E-05   -1.0174    
  35  Prefactor     1.1041        .22009        .19834E-05   -.89334    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.88013e-10
Minuit parameter uncertainties:
  1  1.14354e-07
  2  45.1006
  3  9.74248e-06
  4  5.49279
  5  1.59534e-06
  6  60.1789
  7  48.2435
  8  1.51608
  9  1.58052e-06
  10  6.2666e-07
  11  8.04777
  12  0.000170537
  13  52.3475
  14  5.05616e-07
  15  0.000199475
  16  4.40041
  17  16.3012
  18  0.00275716
  19  2.46376
  20  31.0152
  21  21.845
  22  24.8021
  23  7.94912e-06
  24  21.8815
  25  2.61568e-06
  26  3.94005e-06
  27  11.9305
  28  2.5011e-05
  29  3.88741e-07
  30  3.50704e-05
  31  4.09674e-06
  32  5.33092
  33  1.51603e-06
  34  0.205147
  35  0.220268DDone.

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

Extracting fit parameters...

4FGL J1412.9+5018
   Spectrum: PowerLaw
332    Prefactor:  1.000e-04  1.995e-04  1.000e-04  1.000e+04 ( 1.000e-13)
333        Index:  2.665e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
334        Scale:  6.514e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
666    Prefactor:  1.104e+00  2.203e-01  0.000e+00  1.000e+01 ( 1.000e+00)
667        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
668        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
665   Normalization:  7.556e-01  2.051e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 213.241 50.301
Photon Flux Upper Limit: 8.13e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.39e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/541080/likelihoodResults_678153601_678412801_4FGL_J1412.9+5018_daily_bin1693.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) = 5979.4769117
delta logL = -2.45203318627e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5979.47688725
delta logL = -6.53826646158e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6315       1.0000          .0000       10.000    
     3 'Normalizat'    .75561       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1042       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6690E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5979.477     FROM MIGRAD    STATUS=CONVERGED     71 CALLS      259 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10094E-03    83.847        .12425    ** at limit **
   2  Index         2.7592        6.1124        .50000       -.77077E-05
   3  Normalizat    .75561        .60401E-02    .43028E-01    .75207E-04
   4  Prefactor     1.1041        .72463E-02    .56070E-01   -.91419E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100937
  Index      = 2.75919
  Normalizat = 0.755608
  Prefactor  = 1.10415
 **********
 **   18 **HESSE 
 **********

 FCN=   5979.477     FROM HESSE     STATUS=NOT POSDEF    43 CALLS      302 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10094E-03    85.845        .12302       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7592        6.1045        .50000       -.46471    
   3  Normalizat    .75561        .60622E-02    .24665E-03   -1.0174    
   4  Prefactor     1.1041        .72724E-02    .24792E-03   -.89334    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.41126e-11
Minuit parameter uncertainties:
  1  0.0179637
  2  7.0607
  3  0.00606219
  4  0.00727236
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/541080': 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) = 5979.47688703
delta logL = 1.55971065396e-07

Extracting fit parameters...

4FGL J1412.9+5018
   Spectrum: PowerLaw
332    Prefactor:  1.009e-04  1.796e-02  1.000e-04  1.000e+04 ( 1.000e-13)
333        Index:  2.759e+00  7.061e+00  0.000e+00  1.000e+01 (-1.000e+00)
334        Scale:  6.514e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
666    Prefactor:  1.104e+00  7.272e-03  0.000e+00  1.000e+01 ( 1.000e+00)
667        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
668        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
665   Normalization:  7.556e-01  6.062e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 213.241 50.301

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/541080/cmap_HighResolution_678153601_678412801_4FGL_J1412.9+5018_daily_bin1693.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.39e-03', job_status='DONE', photon_flux_upper_limit='8.13e-08', time_completed='2022-07-02 02:57:44.196457', job_id='541080', GAL2='1.10', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1656755864.2', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='1.56e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.66' WHERE bin_id='1693' AND source_name='4FGL J1412.9+5018' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Jul  2 02:57:44 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0166>
Subject: Job 541082: <4FGL_J1412.9+5018_daily_bin1693> in cluster <slac> Done

Job <4FGL_J1412.9+5018_daily_bin1693> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Jul  2 00:06:32 2022
Job was executed on host(s) <bullet0166>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul  2 02:31:34 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul  2 02:31:34 2022
Terminated at Sat Jul  2 02:57:09 2022
Results reported at Sat Jul  2 02:57:09 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1412.9+5018_daily_bin1693 213.241 50.301 678153601 678412801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1412.9+5018 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1466.25 sec.
    Max Memory :                                 1032 MB
    Average Memory :                             310.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1534 sec.
    Turnaround time :                            10237 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 541080: <4FGL_J1412.9+5018_daily_bin1693> in cluster <slac> Done

Job <4FGL_J1412.9+5018_daily_bin1693> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Jul  2 00:06:32 2022
Job was executed on host(s) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul  2 02:31:34 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul  2 02:31:34 2022
Terminated at Sat Jul  2 02:57:45 2022
Results reported at Sat Jul  2 02:57:45 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1412.9+5018_daily_bin1693 213.241 50.301 678153601 678412801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1412.9+5018 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1475.26 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             313.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1570 sec.
    Turnaround time :                            10273 sec.

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

