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


Performing analysis on: 4FGL_J1359.7+4012_daily_bin1776
RA = 209.928, Dec = 40.2153
tmin = 699667201, tmax = 699926401
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='833926', job_status='RUN', time_executed='2023-03-08 00:44:58.836534', time_epoch_executed='1678265098.84' WHERE source_name='4FGL J1359.7+4012' and cadence='daily' and bin_id='1776'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/833926

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/833926/ft1_4FGL_J1359.7+4012_daily_bin1776.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/833926/ft2_4FGL_J1359.7+4012_daily_bin1776.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/833926/ft1_4FGL_J1359.7+4012_daily_bin1776.fits outfile=/scratch/kocevski/833926/ft1_filteredMKT_4FGL_J1359.7+4012_daily_bin1776.fits ra=209.928 dec=40.2153 rad=12.0 tmin=699667201.0 tmax=699926401.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.90
user 3.69
sys 0.18

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

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

Number of photons that the gtmktime cut: 566

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/833926/ft1_filtered_4FGL_J1359.7+4012_daily_bin1776.fits" evtable="EVENTS" scfile=/scratch/kocevski/833926/ft2_4FGL_J1359.7+4012_daily_bin1776.fits sctable="SC_DATA" outfile=/scratch/kocevski/833926/ltcube_699667201_699926401_4FGL_J1359.7+4012_daily_bin1776.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/833926/ft2_4FGL_J1359.7+4012_daily_bin1776.fits
.....................!
real 12.64
user 12.22
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/833926/ft1_filtered_4FGL_J1359.7+4012_daily_bin1776.fits evtable="EVENTS" scfile=/scratch/kocevski/833926/ft2_4FGL_J1359.7+4012_daily_bin1776.fits sctable="SC_DATA" expcube=/scratch/kocevski/833926/ltcube_699667201_699926401_4FGL_J1359.7+4012_daily_bin1776.fits outfile=/scratch/kocevski/833926/expmap_699667201_699926401_4FGL_J1359.7+4012_daily_bin1776.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/833926/ltcube_699667201_699926401_4FGL_J1359.7+4012_daily_bin1776.fits
.....................!
real 192.26
user 186.35
sys 5.29

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/833926/ft1_filtered_4FGL_J1359.7+4012_daily_bin1776.fits scfile=/scratch/kocevski/833926/ft2_4FGL_J1359.7+4012_daily_bin1776.fits outfile=/scratch/kocevski/833926/cmap_699667201_699926401_4FGL_J1359.7+4012_daily_bin1776.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/833926/ft1_filtered_4FGL_J1359.7+4012_daily_bin1776.fits scfile=/scratch/kocevski/833926/ft2_4FGL_J1359.7+4012_daily_bin1776.fits outfile=/scratch/kocevski/833926/cmap_HighResolution_699667201_699926401_4FGL_J1359.7+4012_daily_bin1776.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.57
user 0.38
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/833926/ft1_filtered_4FGL_J1359.7+4012_daily_bin1776.fits evtable="EVENTS" scfile=/scratch/kocevski/833926/ft2_4FGL_J1359.7+4012_daily_bin1776.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/833926/Model_4FGL_J1359.7+4012_daily_bin1776.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/833926/ft1_filtered_4FGL_J1359.7+4012_daily_bin1776.fits.....................!
real 50.35
user 48.93
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/833926/ft1_filtered_4FGL_J1359.7+4012_daily_bin1776.fits', '/scratch/kocevski/833926/ft2_4FGL_J1359.7+4012_daily_bin1776.fits', expMap='/scratch/kocevski/833926/expmap_699667201_699926401_4FGL_J1359.7+4012_daily_bin1776.fits', expCube='/scratch/kocevski/833926/ltcube_699667201_699926401_4FGL_J1359.7+4012_daily_bin1776.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/833926/Model_4FGL_J1359.7+4012_daily_bin1776.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/833926/ft1_filtered_4FGL_J1359.7+4012_daily_bin1776.fits
Spacecraft file(s): /scratch/kocevski/833926/ft2_4FGL_J1359.7+4012_daily_bin1776.fits
Exposure map: /scratch/kocevski/833926/expmap_699667201_699926401_4FGL_J1359.7+4012_daily_bin1776.fits
Exposure cube: /scratch/kocevski/833926/ltcube_699667201_699926401_4FGL_J1359.7+4012_daily_bin1776.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/833926/Model_4FGL_J1359.7+4012_daily_bin1776.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) = 6290.05598412

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .52433E-01   1.0000          .0000       .10000E+07
     2 'norm      '    .11151E-03   1.0000          .0000       .10000E+07
     3 'norm      '    .11393E-03   1.0000          .0000       .10000E+07
     4 'norm      '    .80425       1.0000          .0000       .10000E+07
     5 'Prefactor '    .14739E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .84412E-01   1.0000          .0000       .10000E+07
     7 'Prefactor '    101.52       1.0000          .0000       .10000E+07
     8 'Prefactor '    15.596       1.0000          .0000       .10000E+07
     9 'Prefactor '    1.4500       1.0000          .0000       .10000E+07
    10 'norm      '    .78109       1.0000          .0000       .10000E+07
    11 'norm      '    .59519       1.0000          .0000       .10000E+07
    12 'Prefactor '    .11346E-03   1.0000          .0000       .10000E+07
    13 'norm      '    24.672       1.0000          .0000       .10000E+07
    14 'Prefactor '    15.759       1.0000          .0000       .10000E+07
    15 'Prefactor '    .53364E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .56261E-02   1.0000          .0000       .10000E+07
    17 'norm      '    2.3725       1.0000          .0000       .10000E+07
    18 'Prefactor '    .85592E-05   1.0000          .0000       .10000E+07
    19 'Prefactor '    10.886       1.0000          .0000       .10000E+07
    20 'Prefactor '    22.224       1.0000          .0000       .10000E+07
    21 'norm      '    .14760E-02   1.0000          .0000       .10000E+07
    22 'norm      '    .51070E-07   1.0000          .0000       .10000E+07
    23 'norm      '    .32171E-03   1.0000          .0000       .10000E+07
    24 'Prefactor '    46.133       1.0000          .0000       .10000E+07
    25 'Prefactor '    .34991E-04   1.0000          .0000       .10000E+07
    26 'Normalizat'    .97215       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .97895       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=   6290.047     FROM MIGRAD    STATUS=CONVERGED    213 CALLS     2557 TOTAL
                     EDM=   .90E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        22.439       -.40251E-06** at limit **
   2  norm           .0000        4.1085       -.99515E-06** at limit **
   3  norm          .20539E-08    26.073        .13261E-05** at limit **
   4  norm          .80069        4.4724        .18916E-06    .12521E-03
   5  Prefactor      .0000        2.3504        .48924E-07** at limit **
   6  Prefactor     .11958        20.752        .46381E-05** at limit **
   7  Prefactor     102.08        41.761        .26296E-05    .31281E-01
   8  Prefactor     15.297        20.090       -.38066E-05    .23645E-01
   9  Prefactor     .98477E-07    371.68        .21875E-04** at limit **
  10  norm          .79428        3.1267       -.32656E-07   -.68322E-03
  11  norm          .60123        1.4172        .62155E-08    .12596E-02
  12  Prefactor      .0000        1.6690       -.25664E-07** at limit **
  13  norm          24.645        15.581       -.17652E-05   -.37801E-02
  14  Prefactor     15.818        1.7998       -.10985E-06   -.78464E-02
  15  Prefactor      .0000        3.2877       -.49937E-06** at limit **
  16  Prefactor     .55511E-10    9.7370       -.77867E-06** at limit **
  17  norm          2.3708        3.0214        .18972E-07    .29579E-03
  18  Prefactor     .10492E-07    26.451       -.13306E-05** at limit **
  19  Prefactor     10.851        16.321       -.15710E-07    .93397E-03
  20  Prefactor     22.212        5.7864        .10499E-06   -.15947E-03
  21  norm           .0000        4.8875       -.79073E-06** at limit **
  22  norm           .0000        1.3214       -.36862E-06** at limit **
  23  norm           .0000        2.8708        .40927E-06** at limit **
  24  Prefactor     46.071        2.5617       -.52215E-07   -.30047E-01
  25  Prefactor      .0000        2.6862        .13504E-06** at limit **
  26  Normalizat    .97322        .20465       -.12393E-04    .10842E-03
  27  Prefactor     .97863        .24214        .51282E-05    .11713E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 0
  norm       = 2.05391e-09
  norm       = 0.800686
  Prefactor  = 0
  Prefactor  = 0.119575
  Prefactor  = 102.077
  Prefactor  = 15.2969
  Prefactor  = 9.84768e-08
  norm       = 0.794279
  norm       = 0.601226
  Prefactor  = 0
  norm       = 24.6454
  Prefactor  = 15.8181
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  norm       = 2.37084
  Prefactor  = 1.04916e-08
  Prefactor  = 10.8509
  Prefactor  = 22.2118
  norm       = 0
  norm       = 0
  norm       = 0
  Prefactor  = 46.071
  Prefactor  = 0
  Normalizat = 0.97322
  Prefactor  = 0.978628
 **********
 **   18 **HESSE 
 **********

 FCN=   6290.047     FROM HESSE     STATUS=OK           552 CALLS     3109 TOTAL
                     EDM=   .69E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        21.633        .15445E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        4.0810        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .20539E-08    26.264        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .80069        4.5651        .52619E-03   -1.5690    
   5  Prefactor      .0000        2.3447        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .11958        13.364        .85645E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     102.08        54.009        .99257E-04   -1.5506    
   8  Prefactor     15.297        59.922        .25335E-03   -1.5630    
   9  Prefactor     .98477E-07    60.105        .12031E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .79428        3.1543        .54355E-03   -1.5690    
  11  norm          .60123        1.4457        .69660E-03   -1.5692    
  12  Prefactor      .0000        1.6674        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          24.645        15.659        .20137E-03   -1.5609    
  14  Prefactor     15.818        27.385        .25203E-03   -1.5628    
  15  Prefactor      .0000        3.2718        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .55511E-10    9.7321        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.3708        3.0400        .66490E-03   -1.5677    
  18  Prefactor     .10492E-07    27.125        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.851        16.446        .30340E-03   -1.5642    
  20  Prefactor     22.212        5.8011        .21218E-03   -1.5614    
  21  norm           .0000        4.8840        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm           .0000        1.3212        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm           .0000        2.8689        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     46.071        21.603        .14724E-03   -1.5572    
  25  Prefactor      .0000        2.6849        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .97322        .17638        .45817E-01   -.93933    
  27  Prefactor     .97863        .20347        .46003E-01   -.93445    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.88822e-07
Minuit parameter uncertainties:
  1  1.8377e-05
  2  1.27476e-05
  3  0.000463227
  4  3.82371
  5  8.89651e-06
  6  2.52829
  7  54.009
  8  59.9245
  9  0.00486587
  10  3.1543
  11  1.44566
  12  6.81229e-06
  13  15.6588
  14  27.3856
  15  4.18106e-06
  16  5.0544e-05
  17  3.03998
  18  0.00106653
  19  16.4463
  20  5.80112
  21  6.20009e-06
  22  5.07767e-06
  23  7.2965e-06
  24  21.6032
  25  2.90804e-06
  26  0.17649
  27  0.203629
Done.

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

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  2.465e+01  1.566e+01  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:  9.786e-01  2.036e-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:  9.732e-01  1.765e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.48
Ra Dec: 209.928 40.215
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 4.56e-08 +/- 2.90e-08
Energy Flux (Fixed Index): 1.36e-05 +/- 8.64e-06

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) = 6289.38415718
delta logL = 0.663268092881

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6289.3713725
delta logL = 0.676052767059

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    19.911       1.0000          .0000       .10000E+07
     2 'alpha     '    3.2539       1.0000          .0000       5.0000    
     3 'Normalizat'    .91768       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0255       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6289.371     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      297 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          19.917        15.604        .89671E-05    .16735E-03
   2  alpha         3.2543        .85964        .17175E-01    .13744E-03
   3  Normalizat    .91776        .20831        .23992E-03    .12131E-04
   4  Prefactor     1.0254        .24665        .27579E-03   -.54743E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 19.9169
  alpha      = 3.25429
  Normalizat = 0.917763
  Prefactor  = 1.02537
 **********
 **   18 **HESSE 
 **********

 FCN=   6289.371     FROM HESSE     STATUS=OK            25 CALLS      322 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          19.917        14.875        .35868E-06   -1.5619    
   2  alpha         3.2543        .82037        .34349E-02    .30649    
   3  Normalizat    .91776        .20841        .95966E-05   -.95839    
   4  Prefactor     1.0254        .24675        .11032E-04   -.91889    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.26092e-11
Minuit parameter uncertainties:
  1  14.8747
  2  0.837502
  3  0.208598
  4  0.247027
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/833926': 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) = 6289.37137155
delta logL = 0.676053718938

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  1.992e+01  1.487e+01  0.000e+00  1.000e+06 ( 1.000e-12)
323        alpha:  3.254e+00  8.375e-01  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.025e+00  2.470e-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:  9.178e-01  2.086e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.92
Ra Dec: 209.928 40.215
Photon Index (Free Index): 3.25 +/- 0.84
Photon Flux (Free Index): 8.12e-08 +/- 5.01e-08
Energy Flux (Free Index): 1.55e-05 +/- 8.38e-06

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/833926/cmap_HighResolution_699667201_699926401_4FGL_J1359.7+4012_daily_bin1776.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.56e-08', energy_flux2='1.55e-05', photon_flux_error='2.90e-08', dlogl='6.76e-01', energy_flux='1.36e-05', photon_flux2='8.12e-08', job_status='DONE', time_completed='2023-03-08 00:55:53.651453', photon_index_error2='0.84', photon_index2='3.25', ts='4.48', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='8.38e-06', EG='0.97', time_epoch_completed='1678265753.65', return_code='0', job_id='833926', GAL2='1.03', EG2='0.92', return_code2='0', energy_flux_error='8.64e-06', photon_flux_error2='5.01e-08', ts2='5.92', photon_index='2.33' WHERE bin_id='1776' AND source_name='4FGL J1359.7+4012' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Mar  8 00:55:53 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0167>
Subject: Job 833926: <4FGL_J1359.7+4012_daily_bin1776> in cluster <slac> Done

Job <4FGL_J1359.7+4012_daily_bin1776> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Mar  8 00:40:26 2023
Job was executed on host(s) <bullet0167>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Mar  8 00:40:54 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Mar  8 00:40:54 2023
Terminated at Wed Mar  8 00:55:54 2023
Results reported at Wed Mar  8 00:55:54 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.7+4012_daily_bin1776 209.928 40.2153 699667201 699926401 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 :                                   656.46 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             291.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   899 sec.
    Turnaround time :                            928 sec.

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

