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


Performing analysis on: 4FGL_J1412.9+5018_daily_bin1748
RA = 213.241, Dec = 50.301
tmin = 692409601, tmax = 692668801
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='887845', job_status='RUN', time_executed='2022-12-14 00:45:58.215442', time_epoch_executed='1671007558.22' WHERE source_name='4FGL J1412.9+5018' and cadence='daily' and bin_id='1748'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/887845

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/887845/ft1_4FGL_J1412.9+5018_daily_bin1748.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/887845/ft2_4FGL_J1412.9+5018_daily_bin1748.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/887845/ft1_4FGL_J1412.9+5018_daily_bin1748.fits outfile=/scratch/kocevski/887845/ft1_filteredMKT_4FGL_J1412.9+5018_daily_bin1748.fits ra=213.241 dec=50.301 rad=12.0 tmin=692409601.0 tmax=692668801.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.60
user 3.35
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/887845/ft2_4FGL_J1412.9+5018_daily_bin1748.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/887845/ft1_filteredMKT_4FGL_J1412.9+5018_daily_bin1748.fits evtable="EVENTS" outfile="/scratch/kocevski/887845/ft1_filtered_4FGL_J1412.9+5018_daily_bin1748.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.58
user 0.32
sys 0.16

Number of photons that the gtmktime cut: 646

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/887845/ft1_filtered_4FGL_J1412.9+5018_daily_bin1748.fits" evtable="EVENTS" scfile=/scratch/kocevski/887845/ft2_4FGL_J1412.9+5018_daily_bin1748.fits sctable="SC_DATA" outfile=/scratch/kocevski/887845/ltcube_692409601_692668801_4FGL_J1412.9+5018_daily_bin1748.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/887845/ft2_4FGL_J1412.9+5018_daily_bin1748.fits
.....................!
real 12.12
user 11.72
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/887845/ft1_filtered_4FGL_J1412.9+5018_daily_bin1748.fits evtable="EVENTS" scfile=/scratch/kocevski/887845/ft2_4FGL_J1412.9+5018_daily_bin1748.fits sctable="SC_DATA" expcube=/scratch/kocevski/887845/ltcube_692409601_692668801_4FGL_J1412.9+5018_daily_bin1748.fits outfile=/scratch/kocevski/887845/expmap_692409601_692668801_4FGL_J1412.9+5018_daily_bin1748.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/887845/ltcube_692409601_692668801_4FGL_J1412.9+5018_daily_bin1748.fits
.....................!
real 190.80
user 185.71
sys 4.67

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/887845/ft1_filtered_4FGL_J1412.9+5018_daily_bin1748.fits scfile=/scratch/kocevski/887845/ft2_4FGL_J1412.9+5018_daily_bin1748.fits outfile=/scratch/kocevski/887845/cmap_692409601_692668801_4FGL_J1412.9+5018_daily_bin1748.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/887845/ft1_filtered_4FGL_J1412.9+5018_daily_bin1748.fits scfile=/scratch/kocevski/887845/ft2_4FGL_J1412.9+5018_daily_bin1748.fits outfile=/scratch/kocevski/887845/cmap_HighResolution_692409601_692668801_4FGL_J1412.9+5018_daily_bin1748.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.55
user 0.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/887845/ft1_filtered_4FGL_J1412.9+5018_daily_bin1748.fits', '/scratch/kocevski/887845/ft2_4FGL_J1412.9+5018_daily_bin1748.fits', expMap='/scratch/kocevski/887845/expmap_692409601_692668801_4FGL_J1412.9+5018_daily_bin1748.fits', expCube='/scratch/kocevski/887845/ltcube_692409601_692668801_4FGL_J1412.9+5018_daily_bin1748.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/887845/Model_4FGL_J1412.9+5018_daily_bin1748.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  0.000e+00  1.000e+06 ( 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/887845/ft1_filtered_4FGL_J1412.9+5018_daily_bin1748.fits
Spacecraft file(s): /scratch/kocevski/887845/ft2_4FGL_J1412.9+5018_daily_bin1748.fits
Exposure map: /scratch/kocevski/887845/expmap_692409601_692668801_4FGL_J1412.9+5018_daily_bin1748.fits
Exposure cube: /scratch/kocevski/887845/ltcube_692409601_692668801_4FGL_J1412.9+5018_daily_bin1748.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/887845/Model_4FGL_J1412.9+5018_daily_bin1748.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) = 7090.26311735

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .28413E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    73.368       1.0000          .0000       .10000E+07
     3 'Prefactor '    .96233E-02   1.0000          .0000       .10000E+07
     4 'norm      '    .15649E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    48.841       1.0000          .0000       .10000E+07
     6 'norm      '    3.7089       1.0000          .0000       .10000E+07
     7 'norm      '    .40062E-04   1.0000          .0000       .10000E+07
     8 'norm      '    33.950       1.0000          .0000       .10000E+07
     9 'Prefactor '    .30074       1.0000          .0000       .10000E+07
    10 'Prefactor '    .81412       1.0000          .0000       .10000E+07
    11 'Prefactor '    3.2918       1.0000          .0000       .10000E+07
    12 'Prefactor '    13.724       1.0000          .0000       .10000E+07
    13 'Prefactor '    .89519E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    .39969E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    .18381       1.0000          .0000       .10000E+07
    16 'Prefactor '    61.129       1.0000          .0000       .10000E+07
    17 'Prefactor '    82.853       1.0000          .0000       .10000E+07
    18 'Prefactor '    .87087E-03   1.0000          .0000       .10000E+07
    19 'Prefactor '    4.9747       1.0000          .0000       .10000E+07
    20 'norm      '    1.5869       1.0000          .0000       .10000E+07
    21 'Prefactor '    .43997E-03   1.0000          .0000       .10000E+07
    22 'Prefactor '    .13248E-04   1.0000          .0000       .10000E+07
    23 'Prefactor '    .10654E-02   1.0000          .0000       .10000E+07
    24 'norm      '    2.9184       1.0000          .0000       .10000E+07
    25 'Normalizat'    .76325       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1030       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6690E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7090.261     FROM MIGRAD    STATUS=CONVERGED    212 CALLS     2431 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .55511E-10    5.7033       -.46611E-07** at limit **
   2  Prefactor     73.322        34.955       -.12202E-06   -.43835E-01
   3  Prefactor     .50839E-05    180.88        .68999E-07** at limit **
   4  norm           .0000        4.4371       -.15060E-10** at limit **
   5  Prefactor     48.928        13.752        .23223E-08   -.13279    
   6  norm          3.7095        1.3400       -.70329E-08    .23215E-03
   7  norm           .0000        1.9835       -.73156E-07** at limit **
   8  norm          33.964        14.314        .11113E-07    .77478E-04
   9  Prefactor     .21705E-07    50.700        .33795E-07** at limit **
  10  Prefactor     .24783E-03    1166.1       -.19030E-05** at limit **
  11  Prefactor     3.3059        3.5487        .49877E-07    .11817E-02
  12  Prefactor     13.643        21.272        .64909E-07   -.45640E-02
  13  Prefactor      .0000        7.3327       -.24261E-07** at limit **
  14  Prefactor      .0000        3.1643       -.21643E-07** at limit **
  15  Prefactor     .55511E-09    46.118        .25110E-06** at limit **
  16  Prefactor     61.360        27.515        .49332E-07   -.20682E-01
  17  Prefactor     83.023        21.021        .59742E-07    .12924    
  18  Prefactor     .83267E-09    9.2315        .78263E-07** at limit **
  19  Prefactor     4.9315        13.764        .66992E-08    .25422E-01
  20  norm          1.5851        1.0698       -.61878E-08    .33893E-04
  21  Prefactor      .0000        4.6524        .18628E-07** at limit **
  22  Prefactor      .0000        5.1064        .11505E-07** at limit **
  23  Prefactor     .55511E-09    7.5335        .66549E-08** at limit **
  24  norm          2.9144        2.9608        .25273E-08    .26849E-03
  25  Normalizat    .76402        .18491        .28903E-05    .17947E-03
  26  Prefactor     1.1027        .21418       -.64402E-06    .15040E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.55112e-11
  Prefactor  = 73.3216
  Prefactor  = 5.08393e-06
  norm       = 0
  Prefactor  = 48.9282
  norm       = 3.70949
  norm       = 0
  norm       = 33.9641
  Prefactor  = 2.17049e-08
  Prefactor  = 0.000247835
  Prefactor  = 3.30591
  Prefactor  = 13.6432
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 5.55112e-10
  Prefactor  = 61.3597
  Prefactor  = 83.0232
  Prefactor  = 8.32667e-10
  Prefactor  = 4.93149
  norm       = 1.5851
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 5.55112e-10
  norm       = 2.91437
  Normalizat = 0.764023
  Prefactor  = 1.10272
 **********
 **   18 **HESSE 
 **********

 FCN=   7090.261     FROM HESSE     STATUS=OK           514 CALLS     2945 TOTAL
                     EDM=   .18E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .55511E-10    5.5972        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     73.322        35.742        .11675E-03   -1.5537    
   3  Prefactor     .50839E-05    184.96        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm           .0000        4.3866        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     48.928        47.420        .14310E-03   -1.5568    
   6  norm          3.7095        1.3412        .52413E-03   -1.5669    
   7  norm           .0000        1.9784        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          33.964        16.580        .17165E-03   -1.5591    
   9  Prefactor     .21705E-07    50.106        .10203E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .24783E-03    36.177        .10355E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.3059        3.5868        .55779E-03   -1.5672    
  12  Prefactor     13.643        21.371        .27012E-03   -1.5634    
  13  Prefactor      .0000        7.3467        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        3.1296        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .55511E-09    6.7622        .12071E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     61.360        28.063        .12791E-03   -1.5551    
  17  Prefactor     83.023        73.394        .10987E-03   -1.5526    
  18  Prefactor     .83267E-09    11.925        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.9315        16.895        .45066E-03   -1.5664    
  20  norm          1.5851        1.0712        .84229E-04   -1.5683    
  21  Prefactor      .0000        4.6577        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor      .0000        5.0659        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .55511E-09    12.430        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          2.9144        2.9648        .59443E-03   -1.5674    
  25  Normalizat    .76402        .15956        .43129E-01   -1.0142    
  26  Prefactor     1.1027        .17854        .57358E-01   -.89380    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.77318e-06
Minuit parameter uncertainties:
  1  3.11933e-05
  2  35.7419
  3  0.0613308
  4  1.82058e-06
  5  47.4206
  6  1.34122
  7  5.96379e-06
  8  16.58
  9  0.00208465
  10  0.189377
  11  3.58679
  12  21.3715
  13  1.83837e-05
  14  6.71269e-07
  15  0.000124383
  16  28.0626
  17  73.3949
  18  0.000199945
  19  16.8956
  20  1.07123
  21  7.28208e-06
  22  6.997e-06
  23  0.000162332
  24  2.96479
  25  0.159662
  26  0.178636
Done.

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

Extracting fit parameters...

4FGL J1412.9+5018
   Spectrum: PowerLaw
332    Prefactor:  2.478e-04  1.894e-01  0.000e+00  1.000e+06 ( 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.103e+00  1.786e-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.640e-01  1.597e-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: 6.62e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.20e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/887845/likelihoodResults_692409601_692668801_4FGL_J1412.9+5018_daily_bin1748.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) = 7090.26231879
delta logL = -0.00101364144575

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7090.10295887
delta logL = 0.158346271038

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .38032E-01   1.0000          .0000       .10000E+07
     2 'Index     '    6.7130       1.0000          .0000       10.000    
     3 'Normalizat'    .73734       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1245       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.

 FCN=   7090.103     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      305 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .35648E-01    6.4912        .28259E-05** at limit **
   2  Index         6.7490        6.5221        .43044E-02   -.48571E-05
   3  Normalizat    .73749        .14855        .25011E-03   -.14091E-05
   4  Prefactor     1.1241        .17763        .25150E-03    .72325E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0356484
  Index      = 6.74899
  Normalizat = 0.737491
  Prefactor  = 1.12415
 **********
 **   18 **HESSE 
 **********

 FCN=   7090.103     FROM HESSE     STATUS=OK            27 CALLS      332 TOTAL
                     EDM=   .24E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .35648E-01    1.6682        .11304E-06   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         6.7490        8.2705        .17218E-03    .35736    
   3  Normalizat    .73749        .17927        .10004E-04   -1.0243    
   4  Prefactor     1.1241        .21476        .10060E-04   -.88699    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.44203e-12
Minuit parameter uncertainties:
  1  0.487726
  2  7.67612
  3  0.179408
  4  0.214926
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/887845': 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) = 7090.10294139
delta logL = 0.158363759007

Extracting fit parameters...

4FGL J1412.9+5018
   Spectrum: PowerLaw
332    Prefactor:  3.565e-02  4.877e-01  0.000e+00  1.000e+06 ( 1.000e-13)
333        Index:  6.749e+00  7.676e+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.124e+00  2.149e-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.375e-01  1.794e-01  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/887845/cmap_HighResolution_692409601_692668801_4FGL_J1412.9+5018_daily_bin1748.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.20e-03', job_status='DONE', photon_flux_upper_limit='6.62e-08', time_completed='2022-12-14 00:58:45.727256', job_id='887845', GAL2='1.12', fit_tolerance='1e-08', EG2='0.74', EG='0.76', time_epoch_completed='1671008325.73', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='1.58e-01', ts2='0.34', photon_index_error='0.00', photon_index='2.66' WHERE bin_id='1748' AND source_name='4FGL J1412.9+5018' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec 14 00:58:45 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0150>
Subject: Job 887845: <4FGL_J1412.9+5018_daily_bin1748> in cluster <slac> Done

Job <4FGL_J1412.9+5018_daily_bin1748> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Dec 14 00:45:19 2022
Job was executed on host(s) <bullet0150>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec 14 00:45:20 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec 14 00:45:20 2022
Terminated at Wed Dec 14 00:58:46 2022
Results reported at Wed Dec 14 00:58:46 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1412.9+5018_daily_bin1748 213.241 50.301 692409601 692668801 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 :                                   768.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             329.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   806 sec.
    Turnaround time :                            807 sec.

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

