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


Performing analysis on: 4FGL_J2035.4+1056_daily_bin1753
RA = 308.852, Dec = 10.938
tmin = 693705601, tmax = 693964801
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='464434', job_status='RUN', time_executed='2022-12-29 01:32:14.821497', time_epoch_executed='1672306334.82' WHERE source_name='4FGL J2035.4+1056' and cadence='daily' and bin_id='1753'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/464434

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/464434/ft1_4FGL_J2035.4+1056_daily_bin1753.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/464434/ft2_4FGL_J2035.4+1056_daily_bin1753.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/464434/ft1_4FGL_J2035.4+1056_daily_bin1753.fits outfile=/scratch/kocevski/464434/ft1_filteredMKT_4FGL_J2035.4+1056_daily_bin1753.fits ra=308.852 dec=10.938 rad=12.0 tmin=693705601.0 tmax=693964801.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 4.63
user 4.42
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/464434/ft2_4FGL_J2035.4+1056_daily_bin1753.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/464434/ft2_4FGL_J2035.4+1056_daily_bin1753.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/464434/ft1_filteredMKT_4FGL_J2035.4+1056_daily_bin1753.fits evtable="EVENTS" outfile="/scratch/kocevski/464434/ft1_filtered_4FGL_J2035.4+1056_daily_bin1753.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.55
user 0.37
sys 0.16

Number of photons that the gtmktime cut: 881

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/464434/ft1_filtered_4FGL_J2035.4+1056_daily_bin1753.fits" evtable="EVENTS" scfile=/scratch/kocevski/464434/ft2_4FGL_J2035.4+1056_daily_bin1753.fits sctable="SC_DATA" outfile=/scratch/kocevski/464434/ltcube_693705601_693964801_4FGL_J2035.4+1056_daily_bin1753.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/464434/ft2_4FGL_J2035.4+1056_daily_bin1753.fits
.....................!
real 16.01
user 15.56
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/464434/ft1_filtered_4FGL_J2035.4+1056_daily_bin1753.fits evtable="EVENTS" scfile=/scratch/kocevski/464434/ft2_4FGL_J2035.4+1056_daily_bin1753.fits sctable="SC_DATA" expcube=/scratch/kocevski/464434/ltcube_693705601_693964801_4FGL_J2035.4+1056_daily_bin1753.fits outfile=/scratch/kocevski/464434/expmap_693705601_693964801_4FGL_J2035.4+1056_daily_bin1753.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/464434/ltcube_693705601_693964801_4FGL_J2035.4+1056_daily_bin1753.fits
.....................!
real 191.43
user 186.24
sys 4.71

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
Extended source G42.8+0.6 in ROI with RadialDisk spatial model.
Extended source W 51C in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/W51C.fits is the correct path to the extended template.
Extended source Cygnus Loop in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/CygnusLoop.fits is the correct path to the extended template.
Added 221 point sources and 3 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2035.4+1056 @ 308.852 10.938

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/464434/ft1_filtered_4FGL_J2035.4+1056_daily_bin1753.fits scfile=/scratch/kocevski/464434/ft2_4FGL_J2035.4+1056_daily_bin1753.fits outfile=/scratch/kocevski/464434/cmap_693705601_693964801_4FGL_J2035.4+1056_daily_bin1753.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=308.852 yref=10.938 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.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/464434/ft1_filtered_4FGL_J2035.4+1056_daily_bin1753.fits scfile=/scratch/kocevski/464434/ft2_4FGL_J2035.4+1056_daily_bin1753.fits outfile=/scratch/kocevski/464434/cmap_HighResolution_693705601_693964801_4FGL_J2035.4+1056_daily_bin1753.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=308.852 yref=10.938 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.42
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/464434/ft1_filtered_4FGL_J2035.4+1056_daily_bin1753.fits evtable="EVENTS" scfile=/scratch/kocevski/464434/ft2_4FGL_J2035.4+1056_daily_bin1753.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/464434/Model_4FGL_J2035.4+1056_daily_bin1753.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 Cygnus Loop
adding source EG_v02
adding source G42.8+0.6
adding source GAL_V02
adding source W 51C
Working on...
/scratch/kocevski/464434/ft1_filtered_4FGL_J2035.4+1056_daily_bin1753.fits.....................!
real 205.73
user 203.98
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/464434/ft1_filtered_4FGL_J2035.4+1056_daily_bin1753.fits', '/scratch/kocevski/464434/ft2_4FGL_J2035.4+1056_daily_bin1753.fits', expMap='/scratch/kocevski/464434/expmap_693705601_693964801_4FGL_J2035.4+1056_daily_bin1753.fits', expCube='/scratch/kocevski/464434/ltcube_693705601_693964801_4FGL_J2035.4+1056_daily_bin1753.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/464434/Model_4FGL_J2035.4+1056_daily_bin1753.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2035.4+1056'

4FGL J2035.4+1056
   Spectrum: LogParabola
480         norm:  1.431e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-11)
481        alpha:  2.315e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
482         beta:  1.236e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
483           Eb:  7.500e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/464434/ft1_filtered_4FGL_J2035.4+1056_daily_bin1753.fits
Spacecraft file(s): /scratch/kocevski/464434/ft2_4FGL_J2035.4+1056_daily_bin1753.fits
Exposure map: /scratch/kocevski/464434/expmap_693705601_693964801_4FGL_J2035.4+1056_daily_bin1753.fits
Exposure cube: /scratch/kocevski/464434/ltcube_693705601_693964801_4FGL_J2035.4+1056_daily_bin1753.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/464434/Model_4FGL_J2035.4+1056_daily_bin1753.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) = 9734.43674928

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .24425E-08   1.0000          .0000       .10000E+07
     2 'Prefactor '    43.670       1.0000          .0000       .10000E+07
     3 'norm      '    .48909E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    4.7209       1.0000          .0000       .10000E+07
     5 'Prefactor '    .16115E-06   1.0000          .0000       .10000E+07
     6 'Prefactor '    .19151E-07   1.0000          .0000       .10000E+07
     7 'norm      '    .30171       1.0000          .0000       .10000E+07
     8 'Prefactor '    .29482E-06   1.0000          .0000       .10000E+07
     9 'norm      '    .55511E-10   1.0000          .0000       .10000E+07
    10 'Prefactor '    30.642       1.0000          .0000       .10000E+07
    11 'Prefactor '    8.2019       1.0000          .0000       .10000E+07
    12 'Prefactor '    8.5418       1.0000          .0000       .10000E+07
    13 'Prefactor '    14.719       1.0000          .0000       .10000E+07
    14 'Normalizat'    1.2786       1.0000         .10000E-01   10.000    
    15 'Prefactor '    .82573       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7870E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9734.435     FROM MIGRAD    STATUS=CONVERGED     78 CALLS     1183 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .65875E-06    13.208       -.57091E-06** at limit **
   2  Prefactor     43.673        1.1051       -.14503E-08    .59342E-02
   3  norm          .58437E-01    1.8127       -.15684E-06** at limit **
   4  Prefactor     4.7151        9.6635       -.22035E-06   -.10203E-02
   5  Prefactor     .90172E-06    11.296       -.38127E-06** at limit **
   6  Prefactor     .33307E-09    10.479        .17424E-06** at limit **
   7  norm          .30166        .43309       -.53620E-07   -.38592E-02
   8  Prefactor     .39968E-08    33.742       -.41783E-06** at limit **
   9  norm           .0000        6.1728       -.37081E-07** at limit **
  10  Prefactor     30.662        5.9329       -.25654E-07    .78032E-01
  11  Prefactor     8.1951        5.2195        .39491E-07   -.20370E-01
  12  Prefactor     8.5396        6.2878       -.49706E-07   -.31897E-01
  13  Prefactor     14.716        10.423       -.61549E-07   -.55519E-01
  14  Normalizat    1.2791        .29584       -.58722E-05   -.24137E-04
  15  Prefactor     .82549        .79711E-01    .20591E-05    .46299E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.58751e-07
  Prefactor  = 43.6729
  norm       = 0.0584372
  Prefactor  = 4.71511
  Prefactor  = 9.01723e-07
  Prefactor  = 3.33067e-10
  norm       = 0.301665
  Prefactor  = 3.9968e-09
  norm       = 0
  Prefactor  = 30.6625
  Prefactor  = 8.19511
  Prefactor  = 8.5396
  Prefactor  = 14.7165
  Normalizat = 1.2791
  Prefactor  = 0.825485
 **********
 **   18 **HESSE 
 **********

 FCN=   9734.435     FROM HESSE     STATUS=OK           224 CALLS     1407 TOTAL
                     EDM=   .38E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .65875E-06    20.675        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     43.673        27.513        .15134E-03   -1.5576    
   3  norm          .58437E-01    4.0803        .55149E-02   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.7151        9.7017        .46288E-03   -1.5665    
   5  Prefactor     .90172E-06    22.352        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .33307E-09    10.483        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .30166        .55859        .18808E-02   -1.5697    
   8  Prefactor     .39968E-08    33.974        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm           .0000        6.1787        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     30.662        32.299        .18068E-03   -1.5597    
  11  Prefactor     8.1951        22.115        .34983E-03   -1.5651    
  12  Prefactor     8.5396        17.349        .34275E-03   -1.5650    
  13  Prefactor     14.716        15.631        .26080E-03   -1.5631    
  14  Normalizat    1.2791        .27820        .10044       -.84192    
  15  Prefactor     .82549        .71684E-01    .32741E-01   -.98796    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.80193e-07
Minuit parameter uncertainties:
  1  0.00738109
  2  27.5129
  3  0.976608
  4  9.7017
  5  0.00897916
  6  0.000117803
  7  0.558586
  8  0.000734949
  9  1.47666e-05
  10  32.2989
  11  22.1156
  12  17.3488
  13  15.6307
  14  0.278527
  15  0.0716917
Done.

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

Extracting fit parameters...

4FGL J2035.4+1056
   Spectrum: LogParabola
480         norm:  3.017e-01  5.586e-01  0.000e+00  1.000e+06 ( 1.000e-11)
481        alpha:  2.315e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
482         beta:  1.236e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
483           Eb:  7.500e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
780    Prefactor:  8.255e-01  7.169e-02  0.000e+00  1.000e+01 ( 1.000e+00)
781        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
782        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
776   Normalization:  1.279e+00  2.785e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.87
Ra Dec: 308.852 10.938
Photon Flux Upper Limit: 1.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.62e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/464434/likelihoodResults_693705601_693964801_4FGL_J2035.4+1056_daily_bin1753.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) = 9734.42284136
delta logL = 0.0124938971712

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9734.42249421
delta logL = 0.0128410536872

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9734.422     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      247 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .31131        24.227        .19054E-02    .14338E-01
   2  alpha         2.1432        3.3581        .41687        .95405E-05
   3  Normalizat    1.2820        .75133E-01    .10034        .27118E-04
   4  Prefactor     .82511        .20642E-01    .32748E-01    .11320E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.311314
  alpha      = 2.14322
  Normalizat = 1.28199
  Prefactor  = 0.825107
 **********
 **   18 **HESSE 
 **********

 FCN=   9734.422     FROM HESSE     STATUS=OK            35 CALLS      282 TOTAL
                     EDM=   .55E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .31131        .44874        .98964E-04   -1.5697    
   2  alpha         2.1432        1.0377        .35945E-01   -.14320    
   3  Normalizat    1.2820        .29524        .44462E-03   -.84106    
   4  Prefactor     .82511        .79517E-01    .14470E-03   -.98809    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.50419e-12
Minuit parameter uncertainties:
  1  0.448738
  2  1.07084
  3  0.29563
  4  0.0795282
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/464434': 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) = 9734.42249083
delta logL = 0.0128444274451

Extracting fit parameters...

4FGL J2035.4+1056
   Spectrum: LogParabola
480         norm:  3.113e-01  4.487e-01  0.000e+00  1.000e+06 ( 1.000e-11)
481        alpha:  2.143e+00  1.071e+00  0.000e+00  5.000e+00 ( 1.000e+00)
482         beta:  1.236e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
483           Eb:  7.500e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
780    Prefactor:  8.251e-01  7.953e-02  0.000e+00  1.000e+01 ( 1.000e+00)
781        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
782        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
776   Normalization:  1.282e+00  2.956e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.87
Ra Dec: 308.852 10.938

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/464434/cmap_HighResolution_693705601_693964801_4FGL_J2035.4+1056_daily_bin1753.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.62e-05', job_status='DONE', photon_flux_upper_limit='1.02e-07', time_completed='2022-12-29 01:46:32.742833', job_id='464434', GAL2='0.83', fit_tolerance='1e-08', EG2='1.28', EG='1.28', time_epoch_completed='1672307192.74', return_code2='0', ts='0.87', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='1.28e-02', ts2='0.90', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='1753' AND source_name='4FGL J2035.4+1056' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Dec 29 01:46:32 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 464434: <4FGL_J2035.4+1056_daily_bin1753> in cluster <slac> Done

Job <4FGL_J2035.4+1056_daily_bin1753> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Dec 29 01:30:16 2022
Job was executed on host(s) <bullet0269>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Dec 29 01:30:47 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Dec 29 01:30:47 2022
Terminated at Thu Dec 29 01:46:33 2022
Results reported at Thu Dec 29 01:46:33 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2035.4+1056_daily_bin1753 308.852 10.938 693705601 693964801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2035.4+1056 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   860.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             356.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   946 sec.
    Turnaround time :                            977 sec.

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

