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


Performing analysis on: 4FGL_J1359.7+4012_daily_bin1777
RA = 209.928, Dec = 40.2153
tmin = 699926401, tmax = 700185601
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='915805', job_status='RUN', time_executed='2023-03-11 00:45:37.718347', time_epoch_executed='1678524337.72' WHERE source_name='4FGL J1359.7+4012' and cadence='daily' and bin_id='1777'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/915805

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/915805/ft1_4FGL_J1359.7+4012_daily_bin1777.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/915805/ft2_4FGL_J1359.7+4012_daily_bin1777.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/915805/ft1_4FGL_J1359.7+4012_daily_bin1777.fits outfile=/scratch/kocevski/915805/ft1_filteredMKT_4FGL_J1359.7+4012_daily_bin1777.fits ra=209.928 dec=40.2153 rad=12.0 tmin=699926401.0 tmax=700185601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.60
user 3.40
sys 0.18

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

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

Number of photons that the gtmktime cut: 537

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/915805/ft1_filtered_4FGL_J1359.7+4012_daily_bin1777.fits" evtable="EVENTS" scfile=/scratch/kocevski/915805/ft2_4FGL_J1359.7+4012_daily_bin1777.fits sctable="SC_DATA" outfile=/scratch/kocevski/915805/ltcube_699926401_700185601_4FGL_J1359.7+4012_daily_bin1777.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/915805/ft2_4FGL_J1359.7+4012_daily_bin1777.fits
.....................!
real 12.15
user 11.81
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/915805/ft1_filtered_4FGL_J1359.7+4012_daily_bin1777.fits evtable="EVENTS" scfile=/scratch/kocevski/915805/ft2_4FGL_J1359.7+4012_daily_bin1777.fits sctable="SC_DATA" expcube=/scratch/kocevski/915805/ltcube_699926401_700185601_4FGL_J1359.7+4012_daily_bin1777.fits outfile=/scratch/kocevski/915805/expmap_699926401_700185601_4FGL_J1359.7+4012_daily_bin1777.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/915805/ltcube_699926401_700185601_4FGL_J1359.7+4012_daily_bin1777.fits
.....................!
real 190.02
user 184.89
sys 4.82

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/915805/ft1_filtered_4FGL_J1359.7+4012_daily_bin1777.fits scfile=/scratch/kocevski/915805/ft2_4FGL_J1359.7+4012_daily_bin1777.fits outfile=/scratch/kocevski/915805/cmap_699926401_700185601_4FGL_J1359.7+4012_daily_bin1777.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/915805/ft1_filtered_4FGL_J1359.7+4012_daily_bin1777.fits scfile=/scratch/kocevski/915805/ft2_4FGL_J1359.7+4012_daily_bin1777.fits outfile=/scratch/kocevski/915805/cmap_HighResolution_699926401_700185601_4FGL_J1359.7+4012_daily_bin1777.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/915805/ft1_filtered_4FGL_J1359.7+4012_daily_bin1777.fits evtable="EVENTS" scfile=/scratch/kocevski/915805/ft2_4FGL_J1359.7+4012_daily_bin1777.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/915805/Model_4FGL_J1359.7+4012_daily_bin1777.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/915805/ft1_filtered_4FGL_J1359.7+4012_daily_bin1777.fits.....................!
real 49.71
user 48.44
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.4775       1.0000          .0000       .10000E+07
     2 'norm      '    5.3977       1.0000          .0000       .10000E+07
     3 'norm      '    5.1171       1.0000          .0000       .10000E+07
     4 'norm      '    .38524E-05   1.0000          .0000       .10000E+07
     5 'Prefactor '    7.7335       1.0000          .0000       .10000E+07
     6 'Prefactor '    .42300E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    48.185       1.0000          .0000       .10000E+07
     8 'Prefactor '    8.9236       1.0000          .0000       .10000E+07
     9 'Prefactor '    10.997       1.0000          .0000       .10000E+07
    10 'norm      '    2.8587       1.0000          .0000       .10000E+07
    11 'norm      '    .55678E-07   1.0000          .0000       .10000E+07
    12 'Prefactor '    10.138       1.0000          .0000       .10000E+07
    13 'norm      '    7.5150       1.0000          .0000       .10000E+07
    14 'Prefactor '    24.983       1.0000          .0000       .10000E+07
    15 'Prefactor '    .71000E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    16.382       1.0000          .0000       .10000E+07
    17 'norm      '    .15338E-05   1.0000          .0000       .10000E+07
    18 'Prefactor '    .13521E-02   1.0000          .0000       .10000E+07
    19 'Prefactor '    .14119E-02   1.0000          .0000       .10000E+07
    20 'Prefactor '    17.814       1.0000          .0000       .10000E+07
    21 'norm      '    .10112E-04   1.0000          .0000       .10000E+07
    22 'norm      '    .12482E-03   1.0000          .0000       .10000E+07
    23 'norm      '    .21211E-06   1.0000          .0000       .10000E+07
    24 'Prefactor '    37.106       1.0000          .0000       .10000E+07
    25 'Prefactor '    .33540E-03   1.0000          .0000       .10000E+07
    26 'Normalizat'    .78222       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0679       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=   6004.349     FROM MIGRAD    STATUS=CONVERGED    165 CALLS     2386 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.4809        15.931       -.14211E-05   -.28510E-01
   2  norm          5.4553        6.1245       -.15356E-06    .25662E-02
   3  norm          5.1462        2.9696       -.56738E-06   -.14413E-01
   4  norm          .15321E-06    5.3941       -.12510E-05** at limit **
   5  Prefactor     7.6588        4.7346        .38737E-06   -.12453E-02
   6  Prefactor     .45519E-08    23.638       -.74535E-06** at limit **
   7  Prefactor     48.271        10.347       -.59342E-06    .17020    
   8  Prefactor     11.236        80.342        .73420E-06   -.90470E-02
   9  Prefactor     10.902        2.8894        .32492E-06   -.17404E-01
  10  norm          2.8583        3.8419        .20867E-06   -.37194E-04
  11  norm           .0000        .88897       -.31693E-06** at limit **
  12  Prefactor     10.152        4.8466        .19977E-06    .13862E-02
  13  norm          7.5317        1.5521        .13285E-08    .25081E-02
  14  Prefactor     25.308        7.6630       -.17965E-06    .42189E-01
  15  Prefactor     .61062E-09    4.7688        .79522E-06** at limit **
  16  Prefactor     16.398        4.8672        .37007E-06   -.17821E-02
  17  norm           .0000        1.3786       -.42323E-06** at limit **
  18  Prefactor      .0000        5.0591       -.64844E-06** at limit **
  19  Prefactor     .11102E-09    5.8415       -.10389E-05** at limit **
  20  Prefactor     17.792        5.7230        .72995E-07    .13962E-02
  21  norm          .87430E-07    5.3882        .15527E-05** at limit **
  22  norm           .0000        2.6042       -.19703E-07** at limit **
  23  norm           .0000        3.6215       -.39818E-06** at limit **
  24  Prefactor     37.109        3.9437        .16379E-06    .11411E-01
  25  Prefactor      .0000        2.8767       -.48211E-06** at limit **
  26  Normalizat    .78219        .19367       -.50332E-05   -.25431E-04
  27  Prefactor     1.0671        .22929       -.11645E-05   -.29376E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.48085
  norm       = 5.45529
  norm       = 5.14622
  norm       = 1.53211e-07
  Prefactor  = 7.65879
  Prefactor  = 4.55191e-09
  Prefactor  = 48.271
  Prefactor  = 11.2359
  Prefactor  = 10.9016
  norm       = 2.85831
  norm       = 0
  Prefactor  = 10.1522
  norm       = 7.53174
  Prefactor  = 25.3084
  Prefactor  = 6.10623e-10
  Prefactor  = 16.3982
  norm       = 0
  Prefactor  = 0
  Prefactor  = 1.11022e-10
  Prefactor  = 17.7921
  norm       = 8.74301e-08
  norm       = 0
  norm       = 0
  Prefactor  = 37.1095
  Prefactor  = 0
  Normalizat = 0.78219
  Prefactor  = 1.06713
 **********
 **   18 **HESSE 
 **********

 FCN=   6004.349     FROM HESSE     STATUS=OK           544 CALLS     2930 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.4809        17.616        .42908E-03   -1.5661    
   2  norm          5.4553        6.2079        .43230E-03   -1.5661    
   3  norm          5.1462        11.852        .44421E-03   -1.5663    
   4  norm          .15321E-06    6.7919        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.6588        4.7842        .36035E-03   -1.5653    
   6  Prefactor     .45519E-08    23.515        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     48.271        36.500        .14407E-03   -1.5569    
   8  Prefactor     11.236        82.266        .33529E-03   -1.5641    
   9  Prefactor     10.902        20.785        .30186E-03   -1.5642    
  10  norm          2.8583        3.8668        .60101E-03   -1.5674    
  11  norm           .0000        .87052        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.152        4.8684        .31445E-03   -1.5644    
  13  norm          7.5317        13.048        .36560E-03   -1.5653    
  14  Prefactor     25.308        47.305        .20011E-03   -1.5607    
  15  Prefactor     .61062E-09    8.2123        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     16.398        21.177        .24719E-03   -1.5627    
  17  norm           .0000        1.3779        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        5.0591        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .11102E-09    7.7938        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     17.792        5.7633        .23703E-03   -1.5624    
  21  norm          .87430E-07    6.4893        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm           .0000        2.6028        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm           .0000        3.6189        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     37.109        18.458        .16418E-03   -1.5586    
  25  Prefactor      .0000        2.8761        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .78219        .17332        .43378E-01   -1.0073    
  27  Prefactor     1.0671        .19342        .58494E-01   -.90524    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17125e-06
Minuit parameter uncertainties:
  1  17.6159
  2  6.20792
  3  11.8522
  4  0.00204016
  5  4.78416
  6  0.000655257
  7  36.5002
  8  60.807
  9  20.7855
  10  3.86682
  11  2.65185e-06
  12  4.86844
  13  13.0484
  14  47.3057
  15  0.000142035
  16  21.1767
  17  7.97964e-07
  18  7.4079e-06
  19  5.17639e-05
  20  5.76333
  21  0.0015066
  22  3.23984e-06
  23  6.12203e-06
  24  18.4578
  25  8.05009e-06
  26  0.173447
  27  0.193551
Done.

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

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  7.532e+00  1.305e+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:  1.067e+00  1.936e-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:  7.822e-01  1.734e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/915805/likelihoodResults_699926401_700185601_4FGL_J1359.7+4012_daily_bin1777.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) = 6004.13718024
delta logL = 0.211848108809

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6004.13111241
delta logL = 0.217915940597

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.7920       1.0000          .0000       .10000E+07
     2 'alpha     '    3.6723       1.0000          .0000       5.0000    
     3 'Normalizat'    .74609       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0970       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=   6004.131     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      266 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.7796        356.49        .16683E-04    .20443E-03
   2  alpha         3.6761        4.1201        .38531E-01    .67792E-05
   3  Normalizat    .74607        .26544        .25266E-03    .13499E-05
   4  Prefactor     1.0970        .31216        .25563E-03   -.35579E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 5.77965
  alpha      = 3.67611
  Normalizat = 0.74607
  Prefactor  = 1.09701
 **********
 **   18 **HESSE 
 **********

 FCN=   6004.131     FROM HESSE     STATUS=OK            25 CALLS      291 TOTAL
                     EDM=   .71E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.7796        17.689        .66733E-06   -1.5660    
   2  alpha         3.6761        4.1575        .15412E-02    .48979    
   3  Normalizat    .74607        .20439        .10106E-04   -1.0210    
   4  Prefactor     1.0970        .24043        .10225E-04   -.89562    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.11521e-13
Minuit parameter uncertainties:
  1  17.6896
  2  3.34519
  3  0.204599
  4  0.240667
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/915805': 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) = 6004.13111124
delta logL = 0.217917115416

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  5.780e+00  1.769e+01  0.000e+00  1.000e+06 ( 1.000e-12)
323        alpha:  3.676e+00  3.345e+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:  1.097e+00  2.407e-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:  7.461e-01  2.046e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.42
Ra Dec: 209.928 40.215

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/915805/cmap_HighResolution_699926401_700185601_4FGL_J1359.7+4012_daily_bin1777.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.17e-05', job_status='DONE', photon_flux_upper_limit='7.28e-08', time_completed='2023-03-11 00:57:08.500632', job_id='915805', GAL2='1.10', fit_tolerance='1e-08', EG2='0.75', EG='0.78', time_epoch_completed='1678525028.5', return_code2='0', ts='0.42', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='2.18e-01', ts2='0.90', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='1777' AND source_name='4FGL J1359.7+4012' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Mar 11 00:57:08 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0183>
Subject: Job 915805: <4FGL_J1359.7+4012_daily_bin1777> in cluster <slac> Done

Job <4FGL_J1359.7+4012_daily_bin1777> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Mar 11 00:45:22 2023
Job was executed on host(s) <bullet0183>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Mar 11 00:45:23 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Mar 11 00:45:23 2023
Terminated at Sat Mar 11 00:57:08 2023
Results reported at Sat Mar 11 00:57:08 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.7+4012_daily_bin1777 209.928 40.2153 699926401 700185601 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 :                                   692.76 sec.
    Max Memory :                                 1274 MB
    Average Memory :                             356.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2930 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   705 sec.
    Turnaround time :                            706 sec.

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

