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


Performing analysis on: 4FGL_J1359.7+4012_daily_bin1765
RA = 209.928, Dec = 40.2153
tmin = 696816001, tmax = 697075201
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='636829', job_status='RUN', time_executed='2023-02-03 01:09:33.725653', time_epoch_executed='1675415373.73' WHERE source_name='4FGL J1359.7+4012' and cadence='daily' and bin_id='1765'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/636829

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/636829/ft1_4FGL_J1359.7+4012_daily_bin1765.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/636829/ft2_4FGL_J1359.7+4012_daily_bin1765.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/636829/ft1_4FGL_J1359.7+4012_daily_bin1765.fits outfile=/scratch/kocevski/636829/ft1_filteredMKT_4FGL_J1359.7+4012_daily_bin1765.fits ra=209.928 dec=40.2153 rad=12.0 tmin=696816001.0 tmax=697075201.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.71
user 3.43
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/636829/ft2_4FGL_J1359.7+4012_daily_bin1765.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/636829/ft1_filteredMKT_4FGL_J1359.7+4012_daily_bin1765.fits evtable="EVENTS" outfile="/scratch/kocevski/636829/ft1_filtered_4FGL_J1359.7+4012_daily_bin1765.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.59
user 0.34
sys 0.15

Number of photons that the gtmktime cut: 584

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/636829/ft1_filtered_4FGL_J1359.7+4012_daily_bin1765.fits" evtable="EVENTS" scfile=/scratch/kocevski/636829/ft2_4FGL_J1359.7+4012_daily_bin1765.fits sctable="SC_DATA" outfile=/scratch/kocevski/636829/ltcube_696816001_697075201_4FGL_J1359.7+4012_daily_bin1765.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/636829/ft2_4FGL_J1359.7+4012_daily_bin1765.fits
.....................!
real 16.24
user 15.73
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/636829/ft1_filtered_4FGL_J1359.7+4012_daily_bin1765.fits evtable="EVENTS" scfile=/scratch/kocevski/636829/ft2_4FGL_J1359.7+4012_daily_bin1765.fits sctable="SC_DATA" expcube=/scratch/kocevski/636829/ltcube_696816001_697075201_4FGL_J1359.7+4012_daily_bin1765.fits outfile=/scratch/kocevski/636829/expmap_696816001_697075201_4FGL_J1359.7+4012_daily_bin1765.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/636829/ltcube_696816001_697075201_4FGL_J1359.7+4012_daily_bin1765.fits
.....................!
real 194.44
user 186.65
sys 5.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 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/636829/ft1_filtered_4FGL_J1359.7+4012_daily_bin1765.fits scfile=/scratch/kocevski/636829/ft2_4FGL_J1359.7+4012_daily_bin1765.fits outfile=/scratch/kocevski/636829/cmap_696816001_697075201_4FGL_J1359.7+4012_daily_bin1765.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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/636829/ft1_filtered_4FGL_J1359.7+4012_daily_bin1765.fits scfile=/scratch/kocevski/636829/ft2_4FGL_J1359.7+4012_daily_bin1765.fits outfile=/scratch/kocevski/636829/cmap_HighResolution_696816001_697075201_4FGL_J1359.7+4012_daily_bin1765.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.58
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/636829/ft1_filtered_4FGL_J1359.7+4012_daily_bin1765.fits evtable="EVENTS" scfile=/scratch/kocevski/636829/ft2_4FGL_J1359.7+4012_daily_bin1765.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/636829/Model_4FGL_J1359.7+4012_daily_bin1765.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/636829/ft1_filtered_4FGL_J1359.7+4012_daily_bin1765.fits.....................!
real 51.54
user 49.62
sys 1.32

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.930       1.0000          .0000       .10000E+07
     2 'norm      '    6.9785       1.0000          .0000       .10000E+07
     3 'norm      '    9.7452       1.0000          .0000       .10000E+07
     4 'norm      '    .15475E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    .21837E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    14.425       1.0000          .0000       .10000E+07
     7 'Prefactor '    56.250       1.0000          .0000       .10000E+07
     8 'Prefactor '    73.388       1.0000          .0000       .10000E+07
     9 'Prefactor '    .56655E-03   1.0000          .0000       .10000E+07
    10 'norm      '    .12662E-06   1.0000          .0000       .10000E+07
    11 'norm      '    .30753E-07   1.0000          .0000       .10000E+07
    12 'Prefactor '    13.787       1.0000          .0000       .10000E+07
    13 'norm      '    14.222       1.0000          .0000       .10000E+07
    14 'Prefactor '    33.273       1.0000          .0000       .10000E+07
    15 'Prefactor '    .14847E-04   1.0000          .0000       .10000E+07
    16 'Prefactor '    .50365E-03   1.0000          .0000       .10000E+07
    17 'norm      '    2.3727       1.0000          .0000       .10000E+07
    18 'Prefactor '    .27534E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    11.736       1.0000          .0000       .10000E+07
    20 'Prefactor '    14.465       1.0000          .0000       .10000E+07
    21 'norm      '    .12286E-01   1.0000          .0000       .10000E+07
    22 'norm      '    4.5318       1.0000          .0000       .10000E+07
    23 'norm      '    .37081E-07   1.0000          .0000       .10000E+07
    24 'Prefactor '    26.778       1.0000          .0000       .10000E+07
    25 'Prefactor '    .77683E-03   1.0000          .0000       .10000E+07
    26 'Normalizat'    1.0940       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .84178       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=   6341.113     FROM MIGRAD    STATUS=CONVERGED    199 CALLS     2414 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.748        2.9274        .58720E-07   -.70594E-02
   2  norm          7.0065        5.2331        .19753E-06   -.21781E-02
   3  norm          9.7511        10.389        .47092E-06    .36046E-03
   4  norm           .0000        1.4337        .34688E-06** at limit **
   5  Prefactor     .27756E-09    5.2139        .35867E-07** at limit **
   6  Prefactor     13.980        5.6552       -.14865E-05    .14857E-01
   7  Prefactor     58.206        34.023       -.10016E-05    .49534E-02
   8  Prefactor     78.188        69.670        .13633E-05    .22828E-02
   9  Prefactor     .61062E-09    16.379       -.15822E-05** at limit **
  10  norm           .0000        1.3621        .12659E-06** at limit **
  11  norm           .0000        .41641        .52542E-07** at limit **
  12  Prefactor     13.831        5.3490        .31605E-07   -.50424E-03
  13  norm          14.374        13.804        .49545E-05   -.72285E-02
  14  Prefactor     33.998        11.878       -.39188E-06   -.68135E-02
  15  Prefactor     .55511E-10    1.9806        .33347E-06** at limit **
  16  Prefactor     .99920E-08    34.112       -.11673E-05** at limit **
  17  norm          2.3914        3.9815       -.15274E-06    .23668E-02
  18  Prefactor     .22204E-09    12.384        .92771E-06** at limit **
  19  Prefactor     11.775        14.405       -.32473E-06   -.59115E-03
  20  Prefactor     14.447        4.8706       -.12292E-06    .35037E-03
  21  norm          .10547E-08    20.916        .35287E-05** at limit **
  22  norm          4.5758        5.5144        .16652E-06    .42379E-03
  23  norm           .0000        5.4676       -.18119E-06** at limit **
  24  Prefactor     26.459        1.8782        .10810E-06   -.17732E-01
  25  Prefactor     .55511E-10    4.1258       -.25793E-06** at limit **
  26  Normalizat    1.0912        .19763        .45391E-06    .25472E-03
  27  Prefactor     .84243        .22643        .57977E-06    .12794E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.7479
  norm       = 7.00649
  norm       = 9.75114
  norm       = 0
  Prefactor  = 2.77556e-10
  Prefactor  = 13.9803
  Prefactor  = 58.2062
  Prefactor  = 78.1884
  Prefactor  = 6.10623e-10
  norm       = 0
  norm       = 0
  Prefactor  = 13.8306
  norm       = 14.3742
  Prefactor  = 33.9977
  Prefactor  = 5.55112e-11
  Prefactor  = 9.99201e-09
  norm       = 2.39143
  Prefactor  = 2.22045e-10
  Prefactor  = 11.7745
  Prefactor  = 14.4473
  norm       = 1.05471e-09
  norm       = 4.57582
  norm       = 0
  Prefactor  = 26.4591
  Prefactor  = 5.55112e-11
  Normalizat = 1.09124
  Prefactor  = 0.842426
 **********
 **   18 **HESSE 
 **********

 FCN=   6341.113     FROM HESSE     STATUS=OK           544 CALLS     2958 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.748        21.580        .21360E-03   -1.5615    
   2  norm          7.0065        5.4290        .37953E-03   -1.5655    
   3  norm          9.7511        10.393        .32076E-03   -1.5646    
   4  norm           .0000        1.4290        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .27756E-09    5.1553        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.980        15.897        .26346E-03   -1.5633    
   7  Prefactor     58.206        35.784        .13334E-03   -1.5555    
   8  Prefactor     78.188        69.483        .11674E-03   -1.5531    
   9  Prefactor     .61062E-09    16.487        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm           .0000        1.3605        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm           .0000        .41483        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     13.831        5.3455        .26950E-03   -1.5634    
  13  norm          14.374        14.222        .26533E-03   -1.5632    
  14  Prefactor     33.998        33.925        .17338E-03   -1.5591    
  15  Prefactor     .55511E-10    1.9782        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .99920E-08    33.865        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.3914        4.0095        .66487E-03   -1.5677    
  18  Prefactor     .22204E-09    12.459        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.775        14.560        .29217E-03   -1.5639    
  20  Prefactor     14.447        4.8711        .26309E-03   -1.5632    
  21  norm          .10547E-08    21.047        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          4.5758        5.5444        .47267E-03   -1.5665    
  23  norm           .0000        5.4611        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     26.459        17.910        .19328E-03   -1.5605    
  25  Prefactor     .55511E-10    4.1185        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0912        .17096        .38248E-01   -.90034    
  27  Prefactor     .84243        .19468        .68298E-01   -.98183    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3977e-08
Minuit parameter uncertainties:
  1  21.5797
  2  5.42902
  3  10.393
  4  6.62263e-06
  5  7.63965e-05
  6  15.8966
  7  35.7844
  8  69.4835
  9  0.000201907
  10  1.04345e-06
  11  4.3841e-08
  12  5.34555
  13  14.2219
  14  33.9251
  15  1.66474e-05
  16  0.00116326
  17  4.00955
  18  0.000104741
  19  14.5596
  20  4.87111
  21  0.000299448
  22  5.54443
  23  2.4303e-05
  24  17.9101
  25  3.0119e-05
  26  0.171049
  27  0.19484
Done.

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

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  1.437e+01  1.422e+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:  8.424e-01  1.948e-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:  1.091e+00  1.710e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.63
Ra Dec: 209.928 40.215
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 2.66e-08 +/- 2.63e-08
Energy Flux (Fixed Index): 7.93e-06 +/- 7.85e-06

TS (Fixed Index): 1.63
Ra Dec: 209.928 40.215
Photon Flux Upper Limit: 8.77e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.62e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/636829/likelihoodResults_696816001_697075201_4FGL_J1359.7+4012_daily_bin1765.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) = 6341.08525956
delta logL = 0.0274844352543

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6341.0828947
delta logL = 0.0298492991215

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.560       1.0000          .0000       .10000E+07
     2 'alpha     '    2.6406       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0818       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85087       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=   6341.083     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      247 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.554        15.033        .10870E-04    .42881E-04
   2  alpha         2.6409        1.3519        .32559E-01    .38567E-04
   3  Normalizat    1.0818        .19399        .22586E-03   -.12397E-03
   4  Prefactor     .85093        .22912        .30081E-03    .44709E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 13.5539
  alpha      = 2.64094
  Normalizat = 1.08184
  Prefactor  = 0.850928
 **********
 **   18 **HESSE 
 **********

 FCN=   6341.083     FROM HESSE     STATUS=OK            25 CALLS      272 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.554        14.564        .43480E-06   -1.5634    
   2  alpha         2.6409        1.3126        .65118E-02    .56405E-01
   3  Normalizat    1.0818        .19386        .90346E-05   -.90337    
   4  Prefactor     .85093        .22898        .12033E-04   -.97878    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21574e-10
Minuit parameter uncertainties:
  1  14.5645
  2  1.38215
  3  0.193988
  4  0.229233
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/636829': 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) = 6341.08289436
delta logL = 0.0298496333498

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  1.355e+01  1.456e+01  0.000e+00  1.000e+06 ( 1.000e-12)
323        alpha:  2.641e+00  1.382e+00  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:  8.509e-01  2.292e-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:  1.082e+00  1.940e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.68
Ra Dec: 209.928 40.215
Photon Index (Free Index): 2.64 +/- 1.38
Photon Flux (Free Index): 3.18e-08 +/- 3.70e-08
Energy Flux (Free Index): 7.84e-06 +/- 7.59e-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/636829/cmap_HighResolution_696816001_697075201_4FGL_J1359.7+4012_daily_bin1765.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.62e-05', comment='SUCCESS', photon_flux='2.66e-08', energy_flux2='7.84e-06', photon_flux_error='2.63e-08', dlogl='2.98e-02', energy_flux='7.93e-06', photon_flux2='3.18e-08', job_status='DONE', time_completed='2023-02-03 01:21:28.238669', photon_index_error2='1.38', photon_index2='2.64', ts='1.63', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='8.77e-08', energy_flux_error2='7.59e-06', EG='1.09', time_epoch_completed='1675416088.24', return_code='0', job_id='636829', GAL2='0.85', EG2='1.08', return_code2='0', energy_flux_error='7.85e-06', photon_flux_error2='3.70e-08', ts2='1.68', photon_index='2.33' WHERE bin_id='1765' AND source_name='4FGL J1359.7+4012' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Feb  3 01:21:28 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 636829: <4FGL_J1359.7+4012_daily_bin1765> in cluster <slac> Done

Job <4FGL_J1359.7+4012_daily_bin1765> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Feb  3 01:05:25 2023
Job was executed on host(s) <bullet0279>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Feb  3 01:05:55 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Feb  3 01:05:55 2023
Terminated at Fri Feb  3 01:21:29 2023
Results reported at Fri Feb  3 01:21:29 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.7+4012_daily_bin1765 209.928 40.2153 696816001 697075201 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 :                                   710.31 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             250.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   933 sec.
    Turnaround time :                            964 sec.

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

