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


Performing analysis on: 4FGL_J1359.7+4012_daily_bin1745
RA = 209.928, Dec = 40.2153
tmin = 691632001, tmax = 691891201
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='647808', job_status='RUN', time_executed='2022-12-05 00:46:04.590383', time_epoch_executed='1670229964.59' WHERE source_name='4FGL J1359.7+4012' and cadence='daily' and bin_id='1745'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/647808

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/647808/ft1_4FGL_J1359.7+4012_daily_bin1745.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/647808/ft2_4FGL_J1359.7+4012_daily_bin1745.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/647808/ft1_4FGL_J1359.7+4012_daily_bin1745.fits outfile=/scratch/kocevski/647808/ft1_filteredMKT_4FGL_J1359.7+4012_daily_bin1745.fits ra=209.928 dec=40.2153 rad=12.0 tmin=691632001.0 tmax=691891201.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 2.34
user 2.14
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/647808/ft2_4FGL_J1359.7+4012_daily_bin1745.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/647808/ft2_4FGL_J1359.7+4012_daily_bin1745.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/647808/ft1_filteredMKT_4FGL_J1359.7+4012_daily_bin1745.fits evtable="EVENTS" outfile="/scratch/kocevski/647808/ft1_filtered_4FGL_J1359.7+4012_daily_bin1745.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.16

Number of photons that the gtmktime cut: 968

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/647808/ft1_filtered_4FGL_J1359.7+4012_daily_bin1745.fits" evtable="EVENTS" scfile=/scratch/kocevski/647808/ft2_4FGL_J1359.7+4012_daily_bin1745.fits sctable="SC_DATA" outfile=/scratch/kocevski/647808/ltcube_691632001_691891201_4FGL_J1359.7+4012_daily_bin1745.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/647808/ft2_4FGL_J1359.7+4012_daily_bin1745.fits
.....................!
real 12.58
user 12.23
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/647808/ft1_filtered_4FGL_J1359.7+4012_daily_bin1745.fits evtable="EVENTS" scfile=/scratch/kocevski/647808/ft2_4FGL_J1359.7+4012_daily_bin1745.fits sctable="SC_DATA" expcube=/scratch/kocevski/647808/ltcube_691632001_691891201_4FGL_J1359.7+4012_daily_bin1745.fits outfile=/scratch/kocevski/647808/expmap_691632001_691891201_4FGL_J1359.7+4012_daily_bin1745.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/647808/ltcube_691632001_691891201_4FGL_J1359.7+4012_daily_bin1745.fits
.....................!
real 190.74
user 185.48
sys 4.93

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

Setting source of interest to:
4FGL J1359.7+4012 @ 209.928 40.2153

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/647808/ft1_filtered_4FGL_J1359.7+4012_daily_bin1745.fits scfile=/scratch/kocevski/647808/ft2_4FGL_J1359.7+4012_daily_bin1745.fits outfile=/scratch/kocevski/647808/cmap_691632001_691891201_4FGL_J1359.7+4012_daily_bin1745.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=209.928 yref=40.2153 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.56
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/647808/ft1_filtered_4FGL_J1359.7+4012_daily_bin1745.fits scfile=/scratch/kocevski/647808/ft2_4FGL_J1359.7+4012_daily_bin1745.fits outfile=/scratch/kocevski/647808/cmap_HighResolution_691632001_691891201_4FGL_J1359.7+4012_daily_bin1745.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=209.928 yref=40.2153 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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/647808/ft1_filtered_4FGL_J1359.7+4012_daily_bin1745.fits evtable="EVENTS" scfile=/scratch/kocevski/647808/ft2_4FGL_J1359.7+4012_daily_bin1745.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/647808/Model_4FGL_J1359.7+4012_daily_bin1745.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/647808/ft1_filtered_4FGL_J1359.7+4012_daily_bin1745.fits.....................!
real 73.56
user 72.16
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/647808/ft1_filtered_4FGL_J1359.7+4012_daily_bin1745.fits', '/scratch/kocevski/647808/ft2_4FGL_J1359.7+4012_daily_bin1745.fits', expMap='/scratch/kocevski/647808/expmap_691632001_691891201_4FGL_J1359.7+4012_daily_bin1745.fits', expCube='/scratch/kocevski/647808/ltcube_691632001_691891201_4FGL_J1359.7+4012_daily_bin1745.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/647808/Model_4FGL_J1359.7+4012_daily_bin1745.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1359.7+4012'

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  4.118e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
323        alpha:  2.327e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
324         beta:  2.597e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
325           Eb:  4.424e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/647808/ft1_filtered_4FGL_J1359.7+4012_daily_bin1745.fits
Spacecraft file(s): /scratch/kocevski/647808/ft2_4FGL_J1359.7+4012_daily_bin1745.fits
Exposure map: /scratch/kocevski/647808/expmap_691632001_691891201_4FGL_J1359.7+4012_daily_bin1745.fits
Exposure cube: /scratch/kocevski/647808/ltcube_691632001_691891201_4FGL_J1359.7+4012_daily_bin1745.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/647808/Model_4FGL_J1359.7+4012_daily_bin1745.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) = 10271.9432484

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.3992       1.0000          .0000       .10000E+07
     2 'norm      '    .15690E-05   1.0000          .0000       .10000E+07
     3 'norm      '    .92712       1.0000          .0000       .10000E+07
     4 'norm      '    1.0362       1.0000          .0000       .10000E+07
     5 'Prefactor '    .35021E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    13.195       1.0000          .0000       .10000E+07
     7 'Prefactor '    43.346       1.0000          .0000       .10000E+07
     8 'Prefactor '    .66794E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    3.2916       1.0000          .0000       .10000E+07
    10 'norm      '    2.2896       1.0000          .0000       .10000E+07
    11 'norm      '    .54039       1.0000          .0000       .10000E+07
    12 'Prefactor '    .32494       1.0000          .0000       .10000E+07
    13 'norm      '    .17308E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    13.391       1.0000          .0000       .10000E+07
    15 'Prefactor '    .27516E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    .11572       1.0000          .0000       .10000E+07
    17 'norm      '    .15686E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .93769E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    35.745       1.0000          .0000       .10000E+07
    20 'Prefactor '    69.704       1.0000          .0000       .10000E+07
    21 'norm      '    .24801E-03   1.0000          .0000       .10000E+07
    22 'norm      '    .26980E-04   1.0000          .0000       .10000E+07
    23 'norm      '    5.0728       1.0000          .0000       .10000E+07
    24 'Prefactor '    .50206E-03   1.0000          .0000       .10000E+07
    25 'Prefactor '    .40427E-05   1.0000          .0000       .10000E+07
    26 'Normalizat'    .89744       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.3191       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10271.86     FROM MIGRAD    STATUS=CONVERGED    160 CALLS     2458 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.3975        8.1104        .12942E-07    .10029E-01
   2  norm           .0000        1.3469       -.20061E-07** at limit **
   3  norm          .93164        .83594        .20797E-10   -.88688E-03
   4  norm          1.0326        1.9471       -.42567E-07   -.39889E-02
   5  Prefactor     .16248E-06    6.2098       -.10042E-06** at limit **
   6  Prefactor     13.275        6.3511       -.12976E-07    .99556E-01
   7  Prefactor     44.104        33.703        .25047E-07    .24828E-02
   8  Prefactor     .71582E-06    10.810       -.71903E-07** at limit **
   9  Prefactor     3.0010        37.480       -.63848E-07    .10973E-01
  10  norm          2.2846        3.4110        .11005E-06    .90105E-02
  11  norm          .54066        .77837       -.34617E-07   -.11005E-01
  12  Prefactor     .31588        6.6412       -.14506E-06   -.16268E-02
  13  norm          .14988E-07    2.1734       -.49523E-07** at limit **
  14  Prefactor     13.734        12.913       -.85517E-08    .73171E-01
  15  Prefactor      .0000        2.0888        .15594E-07** at limit **
  16  Prefactor     .34219E-05    20.494       -.17963E-09** at limit **
  17  norm          .77716E-08    4.9894       -.45081E-07** at limit **
  18  Prefactor     .18668E-06    9.0476       -.67354E-07** at limit **
  19  Prefactor     35.941        4.5248       -.71324E-09   -.45085E-02
  20  Prefactor     69.711        7.0468        .13421E-08   -.54220E-01
  21  norm          .83267E-09    2.8838       -.51996E-07** at limit **
  22  norm          .24353E-06    3.2454       -.10913E-06** at limit **
  23  norm          5.0732        4.3450        .37953E-07    .44632E-02
  24  Prefactor     .42188E-07    5.4794       -.90035E-07** at limit **
  25  Prefactor     .44964E-08    2.1336       -.44668E-07** at limit **
  26  Normalizat    .89680        .17062       -.88678E-06    .17696E-03
  27  Prefactor     1.3192        .21083        .16328E-05    .32683E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.39752
  norm       = 0
  norm       = 0.931635
  norm       = 1.03256
  Prefactor  = 1.62481e-07
  Prefactor  = 13.2746
  Prefactor  = 44.1036
  Prefactor  = 7.15816e-07
  Prefactor  = 3.00098
  norm       = 2.28462
  norm       = 0.540663
  Prefactor  = 0.31588
  norm       = 1.4988e-08
  Prefactor  = 13.7344
  Prefactor  = 0
  Prefactor  = 3.42187e-06
  norm       = 7.77156e-09
  Prefactor  = 1.86684e-07
  Prefactor  = 35.9412
  Prefactor  = 69.7107
  norm       = 8.32667e-10
  norm       = 2.43527e-07
  norm       = 5.07317
  Prefactor  = 4.21885e-08
  Prefactor  = 4.4964e-09
  Normalizat = 0.896796
  Prefactor  = 1.31925
 **********
 **   18 **HESSE 
 **********

 FCN=   10271.86     FROM HESSE     STATUS=OK           556 CALLS     3014 TOTAL
                     EDM=   .62E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.3975        9.1329        .39653E-03   -1.5657    
   2  norm           .0000        1.3436        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .93164        16.798        .43903E-03   -1.5689    
   4  norm          1.0326        2.5103        .44701E-02   -1.5688    
   5  Prefactor     .16248E-06    6.6559        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.275        15.484        .27550E-03   -1.5635    
   7  Prefactor     44.104        37.160        .15190E-03   -1.5575    
   8  Prefactor     .71582E-06    15.418        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.0010        67.896        .55782E-03   -1.5673    
  10  norm          2.2846        3.4401        .67811E-03   -1.5678    
  11  norm          .54066        .79821        .74746E-03   -1.5693    
  12  Prefactor     .31588        1.4001        .66184E-02   -1.5697    
  13  norm          .14988E-07    3.5289        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.734        22.689        .27346E-03   -1.5634    
  15  Prefactor      .0000        2.0933        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .34219E-05    7.3659        .13525E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .77716E-08    4.9076        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .18668E-06    14.407        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     35.941        15.997        .16728E-03   -1.5588    
  20  Prefactor     69.711        7.0757        .11978E-03   -1.5541    
  21  norm          .83267E-09    2.8871        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .24353E-06    8.0865        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          5.0732        4.3423        .44619E-03   -1.5663    
  24  Prefactor     .42188E-07    8.1604        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .44964E-08    3.5378        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .89680        .14974        .44869E-01   -.96573    
  27  Prefactor     1.3192        .17561        .64052E-01   -.82737    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.21172e-07
Minuit parameter uncertainties:
  1  9.13292
  2  9.36082e-06
  3  7.91193
  4  2.51027
  5  0.00207994
  6  15.4842
  7  37.16
  8  0.00664441
  9  28.5489
  10  3.44014
  11  0.798207
  12  1.33006
  13  0.000460325
  14  22.6889
  15  1.40663e-06
  16  0.010041
  17  0.000390235
  18  0.00327986
  19  15.9968
  20  7.07569
  21  9.67152e-05
  22  0.00280674
  23  4.34233
  24  0.00117321
  25  0.000252997
  26  0.149806
  27  0.175692
Done.

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

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  1.499e-08  4.603e-04  0.000e+00  1.000e+06 ( 1.000e-12)
323        alpha:  2.327e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
324         beta:  2.597e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
325           Eb:  4.424e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
617    Prefactor:  1.319e+00  1.757e-01  0.000e+00  1.000e+01 ( 1.000e+00)
618        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
619        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
616   Normalization:  8.968e-01  1.498e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 209.928 40.215
Photon Flux Upper Limit: 3.13e-08 ph cm-2 s-1
Energy Flux Upper Limit: 9.32e-06 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/647808/likelihoodResults_691632001_691891201_4FGL_J1359.7+4012_daily_bin1745.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) = 10271.9945384
delta logL = -0.136624869081

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10271.8579136
delta logL = -1.73731677933e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .26756E-07   1.0000          .0000       .10000E+07
     2 'alpha     '    3.2801       1.0000          .0000       5.0000    
     3 'Normalizat'    .89679       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3193       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10271.86     FROM MIGRAD    STATUS=CONVERGED     68 CALLS      221 TOTAL
                     EDM=   .73E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .55511E-10    .29689E-01    .42118E-03** at limit **
   2  alpha         .53974        4.1069        .44024       -.82637E-10
   3  Normalizat    .89680        .65564E-03    .44861E-01    .89283E-03
   4  Prefactor     1.3192        .82115E-03    .64052E-01    .32342E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.55112e-11
  alpha      = 0.53974
  Normalizat = 0.896803
  Prefactor  = 1.31924
 **********
 **   18 **HESSE 
 **********

 FCN=   10271.86     FROM HESSE     STATUS=NOT POSDEF    25 CALLS      246 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .55511E-10    .14833        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         .53974        4.3800        .51000       -.90125    
   3  Normalizat    .89680        .14644E-02    .26941E-03   -.96573    
   4  Prefactor     1.3192        .18336E-02    .28330E-03   -.82737    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.84146e-11
Minuit parameter uncertainties:
  1  5.19517e-06
  2  58634.2
  3  0.00146442
  4  0.00183363
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/647808': 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) = 10271.8579135
delta logL = 1.54795998242e-09

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  5.551e-11  5.195e-06  0.000e+00  1.000e+06 ( 1.000e-12)
323        alpha:  5.397e-01  5.863e+04  0.000e+00  5.000e+00 ( 1.000e+00)
324         beta:  2.597e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
325           Eb:  4.424e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
617    Prefactor:  1.319e+00  1.834e-03  0.000e+00  1.000e+01 ( 1.000e+00)
618        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
619        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
616   Normalization:  8.968e-01  1.464e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 209.928 40.215

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/647808/cmap_HighResolution_691632001_691891201_4FGL_J1359.7+4012_daily_bin1745.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.32e-06', job_status='DONE', photon_flux_upper_limit='3.13e-08', time_completed='2022-12-05 01:01:34.200644', job_id='647808', GAL2='1.32', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1670230894.2', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.32', dlogl='1.55e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='1745' AND source_name='4FGL J1359.7+4012' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec  5 01:01:34 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 647808: <4FGL_J1359.7+4012_daily_bin1745> in cluster <slac> Done

Job <4FGL_J1359.7+4012_daily_bin1745> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Dec  5 00:45:15 2022
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Dec  5 00:45:17 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Dec  5 00:45:17 2022
Terminated at Mon Dec  5 01:01:34 2022
Results reported at Mon Dec  5 01:01:34 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.7+4012_daily_bin1745 209.928 40.2153 691632001 691891201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1359.7+4012 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   931.32 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             321.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   977 sec.
    Turnaround time :                            979 sec.

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

