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


Performing analysis on: 4FGL_J1412.9+5018_daily_bin1750
RA = 213.241, Dec = 50.301
tmin = 692928001, tmax = 693187201
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='14810', job_status='RUN', time_executed='2022-12-20 01:01:51.418613', time_epoch_executed='1671526911.42' WHERE source_name='4FGL J1412.9+5018' and cadence='daily' and bin_id='1750'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/14810

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/14810/ft1_4FGL_J1412.9+5018_daily_bin1750.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/14810/ft2_4FGL_J1412.9+5018_daily_bin1750.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/14810/ft1_4FGL_J1412.9+5018_daily_bin1750.fits outfile=/scratch/kocevski/14810/ft1_filteredMKT_4FGL_J1412.9+5018_daily_bin1750.fits ra=213.241 dec=50.301 rad=12.0 tmin=692928001.0 tmax=693187201.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.47
user 3.25
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/14810/ft2_4FGL_J1412.9+5018_daily_bin1750.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/14810/ft1_filteredMKT_4FGL_J1412.9+5018_daily_bin1750.fits evtable="EVENTS" outfile="/scratch/kocevski/14810/ft1_filtered_4FGL_J1412.9+5018_daily_bin1750.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.49
user 0.33
sys 0.15

Number of photons that the gtmktime cut: 587

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/14810/ft1_filtered_4FGL_J1412.9+5018_daily_bin1750.fits" evtable="EVENTS" scfile=/scratch/kocevski/14810/ft2_4FGL_J1412.9+5018_daily_bin1750.fits sctable="SC_DATA" outfile=/scratch/kocevski/14810/ltcube_692928001_693187201_4FGL_J1412.9+5018_daily_bin1750.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/14810/ft2_4FGL_J1412.9+5018_daily_bin1750.fits
.....................!
real 11.39
user 11.04
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/14810/ft1_filtered_4FGL_J1412.9+5018_daily_bin1750.fits evtable="EVENTS" scfile=/scratch/kocevski/14810/ft2_4FGL_J1412.9+5018_daily_bin1750.fits sctable="SC_DATA" expcube=/scratch/kocevski/14810/ltcube_692928001_693187201_4FGL_J1412.9+5018_daily_bin1750.fits outfile=/scratch/kocevski/14810/expmap_692928001_693187201_4FGL_J1412.9+5018_daily_bin1750.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/14810/ltcube_692928001_693187201_4FGL_J1412.9+5018_daily_bin1750.fits
.....................!
real 190.60
user 185.56
sys 4.73

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/14810/ft1_filtered_4FGL_J1412.9+5018_daily_bin1750.fits scfile=/scratch/kocevski/14810/ft2_4FGL_J1412.9+5018_daily_bin1750.fits outfile=/scratch/kocevski/14810/cmap_692928001_693187201_4FGL_J1412.9+5018_daily_bin1750.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/14810/ft1_filtered_4FGL_J1412.9+5018_daily_bin1750.fits scfile=/scratch/kocevski/14810/ft2_4FGL_J1412.9+5018_daily_bin1750.fits outfile=/scratch/kocevski/14810/cmap_HighResolution_692928001_693187201_4FGL_J1412.9+5018_daily_bin1750.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.54
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/14810/ft1_filtered_4FGL_J1412.9+5018_daily_bin1750.fits', '/scratch/kocevski/14810/ft2_4FGL_J1412.9+5018_daily_bin1750.fits', expMap='/scratch/kocevski/14810/expmap_692928001_693187201_4FGL_J1412.9+5018_daily_bin1750.fits', expCube='/scratch/kocevski/14810/ltcube_692928001_693187201_4FGL_J1412.9+5018_daily_bin1750.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/14810/Model_4FGL_J1412.9+5018_daily_bin1750.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/14810/ft1_filtered_4FGL_J1412.9+5018_daily_bin1750.fits
Spacecraft file(s): /scratch/kocevski/14810/ft2_4FGL_J1412.9+5018_daily_bin1750.fits
Exposure map: /scratch/kocevski/14810/expmap_692928001_693187201_4FGL_J1412.9+5018_daily_bin1750.fits
Exposure cube: /scratch/kocevski/14810/ltcube_692928001_693187201_4FGL_J1412.9+5018_daily_bin1750.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/14810/Model_4FGL_J1412.9+5018_daily_bin1750.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) = 6356.93139797

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.3810       1.0000          .0000       .10000E+07
     2 'Prefactor '    59.046       1.0000          .0000       .10000E+07
     3 'Prefactor '    .89183E-03   1.0000          .0000       .10000E+07
     4 'norm      '    3.2413       1.0000          .0000       .10000E+07
     5 'Prefactor '    88.818       1.0000          .0000       .10000E+07
     6 'norm      '    .12979E-06   1.0000          .0000       .10000E+07
     7 'norm      '    .13940E-05   1.0000          .0000       .10000E+07
     8 'norm      '    .35278E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    5.0329       1.0000          .0000       .10000E+07
    10 'Prefactor '    13.786       1.0000          .0000       .10000E+07
    11 'Prefactor '    .51599       1.0000          .0000       .10000E+07
    12 'Prefactor '    21.146       1.0000          .0000       .10000E+07
    13 'Prefactor '    .27050E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    4.0971       1.0000          .0000       .10000E+07
    15 'Prefactor '    .12626E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .55237E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    .17497E-02   1.0000          .0000       .10000E+07
    18 'Prefactor '    21.213       1.0000          .0000       .10000E+07
    19 'Prefactor '    1.8948       1.0000          .0000       .10000E+07
    20 'norm      '    1.6402       1.0000          .0000       .10000E+07
    21 'Prefactor '    .40456E-03   1.0000          .0000       .10000E+07
    22 'Prefactor '    .96172E-01   1.0000          .0000       .10000E+07
    23 'Prefactor '    9.3149       1.0000          .0000       .10000E+07
    24 'norm      '    8.2264       1.0000          .0000       .10000E+07
    25 'Normalizat'    .91376       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1806       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=   6356.792     FROM MIGRAD    STATUS=CONVERGED    168 CALLS     2269 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.3613        3.8343       -.38782E-08   -.56022E-03
   2  Prefactor     61.243        33.041       -.71174E-06    .80447E-01
   3  Prefactor     .15693E-06    27.408       -.12975E-05** at limit **
   4  norm          3.2325        4.4866        .16434E-06   -.64705E-03
   5  Prefactor     91.464        55.188       -.90709E-07   -.17166E-01
   6  norm           .0000        .78432       -.11591E-06** at limit **
   7  norm           .0000        1.2293       -.24033E-06** at limit **
   8  norm          .55511E-10    4.0168       -.13969E-06** at limit **
   9  Prefactor     6.2260        20.452       -.13164E-05   -.19728E-01
  10  Prefactor     14.790        13.614       -.60240E-06   -.24668E-01
  11  Prefactor     .48977        6.7837       -.41427E-06    .15359E-02
  12  Prefactor     21.727        4.4958       -.14877E-06   -.10187    
  13  Prefactor     .70943E-06    8.5100        .63575E-06** at limit **
  14  Prefactor     4.0783        2.5775       -.28534E-07    .36984E-03
  15  Prefactor     .46319E-06    8.9925        .91055E-07** at limit **
  16  Prefactor     .20539E-05    3.8033        .60819E-06** at limit **
  17  Prefactor     .29854E-06    22.859       -.42275E-06** at limit **
  18  Prefactor     21.579        2.9132       -.38287E-07   -.24894E-01
  19  Prefactor     2.0729        20.491       -.17424E-05    .75579E-02
  20  norm          1.6444        1.5346        .52870E-07   -.73126E-03
  21  Prefactor     .20539E-08    14.500        .56538E-06** at limit **
  22  Prefactor     .24723E-05    1.2685        .31637E-06** at limit **
  23  Prefactor     9.4077        8.6981        .90560E-08   -.14349E-02
  24  norm          8.1973        4.4573        .25786E-07   -.11086E-03
  25  Normalizat    .90709        .20197       -.11096E-05    .19200E-04
  26  Prefactor     1.1842        .23363        .73494E-06    .53493E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.3613
  Prefactor  = 61.2435
  Prefactor  = 1.5693e-07
  norm       = 3.23255
  Prefactor  = 91.4636
  norm       = 0
  norm       = 0
  norm       = 5.55112e-11
  Prefactor  = 6.22597
  Prefactor  = 14.7904
  Prefactor  = 0.489769
  Prefactor  = 21.7269
  Prefactor  = 7.09433e-07
  Prefactor  = 4.07829
  Prefactor  = 4.63185e-07
  Prefactor  = 2.05386e-06
  Prefactor  = 2.98539e-07
  Prefactor  = 21.5791
  Prefactor  = 2.07291
  norm       = 1.6444
  Prefactor  = 2.05391e-09
  Prefactor  = 2.4723e-06
  Prefactor  = 9.40775
  norm       = 8.19735
  Normalizat = 0.907089
  Prefactor  = 1.18423
 **********
 **   18 **HESSE 
 **********

 FCN=   6356.792     FROM HESSE     STATUS=OK           520 CALLS     2789 TOTAL
                     EDM=   .90E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.3613        3.8885        .55003E-03   -1.5671    
   2  Prefactor     61.243        40.381        .13015E-03   -1.5551    
   3  Prefactor     .15693E-06    27.925        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.2325        4.5255        .56234E-03   -1.5672    
   5  Prefactor     91.464        55.469        .10611E-03   -1.5517    
   6  norm           .0000        .77452        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm           .0000        1.2310        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .55511E-10    4.0158        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.2260        81.061        .44799E-03   -1.5658    
  10  Prefactor     14.790        44.308        .26951E-03   -1.5631    
  11  Prefactor     .48977        7.3543        .77117E-03   -1.5694    
  12  Prefactor     21.727        21.029        .21753E-03   -1.5615    
  13  Prefactor     .70943E-06    10.815        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.0783        2.6727        .49782E-03   -1.5668    
  15  Prefactor     .46319E-06    10.326        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .20539E-05    10.334        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .29854E-06    23.652        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     21.579        22.232        .21718E-03   -1.5615    
  19  Prefactor     2.0729        20.796        .75547E-03   -1.5679    
  20  norm          1.6444        1.5546        .82475E-03   -1.5682    
  21  Prefactor     .20539E-08    14.518        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .24723E-05    2.6114        .83834E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     9.4077        8.7041        .32813E-03   -1.5647    
  24  norm          8.1973        4.4603        .34930E-03   -1.5651    
  25  Normalizat    .90709        .17326        .45077E-01   -.96211    
  26  Prefactor     1.1842        .19714        .59688E-01   -.86818    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.02612e-07
Minuit parameter uncertainties:
  1  3.88849
  2  40.3814
  3  0.00418665
  4  4.52547
  5  55.4693
  6  1.23357e-06
  7  3.60972e-06
  8  2.53765e-05
  9  44.931
  10  44.3092
  11  3.79575
  12  21.029
  13  0.00553969
  14  2.67271
  15  0.00437378
  16  0.00921426
  17  0.00531474
  18  22.232
  19  13.1314
  20  1.5546
  21  0.000343508
  22  0.00508176
  23  8.70409
  24  4.46032
  25  0.173362
  26  0.19726
Done.

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

Extracting fit parameters...

4FGL J1412.9+5018
   Spectrum: PowerLaw
332    Prefactor:  1.479e+01  4.431e+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.184e+00  1.973e-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:  9.071e-01  1.734e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/14810/likelihoodResults_692928001_693187201_4FGL_J1412.9+5018_daily_bin1750.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) = 6356.409603
delta logL = 0.382591804087

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6356.40278411
delta logL = 0.389410690329

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   6356.403     FROM MIGRAD    STATUS=FAILED        99 CALLS      312 TOTAL
                     EDM=   .23E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8833        230.59        .71237E-04   -.11924E-02
   2  Index         3.8691        6.9341        .73638E-02    .33749E-03
   3  Normalizat    .87485        .19431        .24746E-03   -.14825E-03
   4  Prefactor     1.2070        .23301        .26174E-03   -.12586E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6356.403     FROM SIMPLEX   STATUS=UNCHANGED     97 CALLS      409 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8833        230.59        .19681E-04   -1.5652    
   2  Index         3.8691        6.9341        .99602E-03   -.22816    
   3  Normalizat    .87485        .19431        .25496E-03   -.97350    
   4  Prefactor     1.2070        .23301        .20430E-03   -.86117    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6356.403     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      441 TOTAL
                     EDM=   .74E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8833        22.011        .28495E-05   -.17156E-03
   2  Index         3.8691        1.6322        .14728E-02   -.10653E-04
   3  Normalizat    .87485        .19399        .98984E-05   -.36064E-04
   4  Prefactor     1.2070        .23278        .52348E-04   -.30926E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.88335
  Index      = 3.86907
  Normalizat = 0.874845
  Prefactor  = 1.20697
 **********
 **   18 **HESSE 
 **********

 FCN=   6356.403     FROM HESSE     STATUS=OK            23 CALLS      464 TOTAL
                     EDM=   .75E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8833        20.520        .11398E-06   -1.5652    
   2  Index         3.8691        1.5246        .58911E-04   -.22816    
   3  Normalizat    .87485        .19418        .19797E-05   -.97350    
   4  Prefactor     1.2070        .23296        .10470E-04   -.86117    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.46789e-12
Minuit parameter uncertainties:
  1  20.5202
  2  1.55068
  3  0.194331
  4  0.233164
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/14810': 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) = 6356.40277674
delta logL = 0.389418062377

Extracting fit parameters...

4FGL J1412.9+5018
   Spectrum: PowerLaw
332    Prefactor:  7.883e+00  2.052e+01  0.000e+00  1.000e+06 ( 1.000e-13)
333        Index:  3.869e+00  1.551e+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.207e+00  2.332e-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:  8.748e-01  1.943e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.14
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/14810/cmap_HighResolution_692928001_693187201_4FGL_J1412.9+5018_daily_bin1750.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.43e-03', job_status='DONE', photon_flux_upper_limit='9.45e-08', time_completed='2022-12-20 01:13:47.728974', job_id='14810', GAL2='1.21', fit_tolerance='1e-08', EG2='0.87', EG='0.91', time_epoch_completed='1671527627.73', return_code2='0', ts='0.14', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='3.89e-01', ts2='0.96', photon_index_error='0.00', photon_index='2.66' WHERE bin_id='1750' AND source_name='4FGL J1412.9+5018' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec 20 01:13:47 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0063>
Subject: Job 14810: <4FGL_J1412.9+5018_daily_bin1750> in cluster <slac> Done

Job <4FGL_J1412.9+5018_daily_bin1750> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Dec 20 01:00:16 2022
Job was executed on host(s) <bullet0063>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec 20 01:00:18 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec 20 01:00:18 2022
Terminated at Tue Dec 20 01:13:48 2022
Results reported at Tue Dec 20 01:13:48 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1412.9+5018_daily_bin1750 213.241 50.301 692928001 693187201 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 :                                   718.40 sec.
    Max Memory :                                 1103 MB
    Average Memory :                             310.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   3407 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            812 sec.

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

