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


Performing analysis on: 4FGL_J2035.4+1056_daily_bin1734
RA = 308.852, Dec = 10.938
tmin = 688780801, tmax = 689040001
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='775208', job_status='RUN', time_executed='2022-11-02 00:31:01.071251', time_epoch_executed='1667374261.07' WHERE source_name='4FGL J2035.4+1056' and cadence='daily' and bin_id='1734'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/775208

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/775208/ft1_4FGL_J2035.4+1056_daily_bin1734.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/775208/ft2_4FGL_J2035.4+1056_daily_bin1734.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/775208/ft1_4FGL_J2035.4+1056_daily_bin1734.fits outfile=/scratch/kocevski/775208/ft1_filteredMKT_4FGL_J2035.4+1056_daily_bin1734.fits ra=308.852 dec=10.938 rad=12.0 tmin=688780801.0 tmax=689040001.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.56
user 3.32
sys 0.22

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

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

Number of photons that the gtmktime cut: 1002

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/775208/ft1_filtered_4FGL_J2035.4+1056_daily_bin1734.fits" evtable="EVENTS" scfile=/scratch/kocevski/775208/ft2_4FGL_J2035.4+1056_daily_bin1734.fits sctable="SC_DATA" outfile=/scratch/kocevski/775208/ltcube_688780801_689040001_4FGL_J2035.4+1056_daily_bin1734.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/775208/ft2_4FGL_J2035.4+1056_daily_bin1734.fits
.....................!
real 11.92
user 11.56
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/775208/ft1_filtered_4FGL_J2035.4+1056_daily_bin1734.fits evtable="EVENTS" scfile=/scratch/kocevski/775208/ft2_4FGL_J2035.4+1056_daily_bin1734.fits sctable="SC_DATA" expcube=/scratch/kocevski/775208/ltcube_688780801_689040001_4FGL_J2035.4+1056_daily_bin1734.fits outfile=/scratch/kocevski/775208/expmap_688780801_689040001_4FGL_J2035.4+1056_daily_bin1734.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/775208/ltcube_688780801_689040001_4FGL_J2035.4+1056_daily_bin1734.fits
.....................!
real 191.62
user 186.16
sys 5.09

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/775208/ft1_filtered_4FGL_J2035.4+1056_daily_bin1734.fits scfile=/scratch/kocevski/775208/ft2_4FGL_J2035.4+1056_daily_bin1734.fits outfile=/scratch/kocevski/775208/cmap_688780801_689040001_4FGL_J2035.4+1056_daily_bin1734.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/775208/ft1_filtered_4FGL_J2035.4+1056_daily_bin1734.fits scfile=/scratch/kocevski/775208/ft2_4FGL_J2035.4+1056_daily_bin1734.fits outfile=/scratch/kocevski/775208/cmap_HighResolution_688780801_689040001_4FGL_J2035.4+1056_daily_bin1734.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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/775208/ft1_filtered_4FGL_J2035.4+1056_daily_bin1734.fits evtable="EVENTS" scfile=/scratch/kocevski/775208/ft2_4FGL_J2035.4+1056_daily_bin1734.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/775208/Model_4FGL_J2035.4+1056_daily_bin1734.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/775208/ft1_filtered_4FGL_J2035.4+1056_daily_bin1734.fits.....................!
real 224.54
user 222.52
sys 1.56

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/775208/ft1_filtered_4FGL_J2035.4+1056_daily_bin1734.fits', '/scratch/kocevski/775208/ft2_4FGL_J2035.4+1056_daily_bin1734.fits', expMap='/scratch/kocevski/775208/expmap_688780801_689040001_4FGL_J2035.4+1056_daily_bin1734.fits', expCube='/scratch/kocevski/775208/ltcube_688780801_689040001_4FGL_J2035.4+1056_daily_bin1734.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/775208/Model_4FGL_J2035.4+1056_daily_bin1734.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/775208/ft1_filtered_4FGL_J2035.4+1056_daily_bin1734.fits
Spacecraft file(s): /scratch/kocevski/775208/ft2_4FGL_J2035.4+1056_daily_bin1734.fits
Exposure map: /scratch/kocevski/775208/expmap_688780801_689040001_4FGL_J2035.4+1056_daily_bin1734.fits
Exposure cube: /scratch/kocevski/775208/ltcube_688780801_689040001_4FGL_J2035.4+1056_daily_bin1734.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/775208/Model_4FGL_J2035.4+1056_daily_bin1734.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) = 10669.4031115

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    93.977       1.0000          .0000       .10000E+07
     2 'Prefactor '    .38091E-02   1.0000          .0000       .10000E+07
     3 'norm      '    .13767E-07   1.0000          .0000       .10000E+07
     4 'Prefactor '    .68766E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    8.9949       1.0000          .0000       .10000E+07
     6 'Prefactor '    .53628E-03   1.0000          .0000       .10000E+07
     7 'norm      '    1.5546       1.0000          .0000       .10000E+07
     8 'Prefactor '    .18878       1.0000          .0000       .10000E+07
     9 'norm      '    .16647E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    14.124       1.0000          .0000       .10000E+07
    11 'Prefactor '    23.909       1.0000          .0000       .10000E+07
    12 'Prefactor '    .69480E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    .26461       1.0000          .0000       .10000E+07
    14 'Normalizat'    1.2399       1.0000         .10000E-01   10.000    
    15 'Prefactor '    .87978       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=   10669.40     FROM MIGRAD    STATUS=CONVERGED     98 CALLS     1044 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     94.292        46.598        .28273E-05   -.60959E-02
   2  Prefactor     .17131E-06    5.6120       -.79138E-06** at limit **
   3  norm           .0000        1.3164        .17360E-06** at limit **
   4  Prefactor     .55511E-10    6.8939        .22701E-05** at limit **
   5  Prefactor     8.9679        7.6342       -.25278E-05   -.86025E-02
   6  Prefactor     .11102E-09    13.521        .37052E-05** at limit **
   7  norm          1.5553        .87035        .13015E-06   -.12981E-02
   8  Prefactor     .49960E-09    37.085       -.43752E-06** at limit **
   9  norm          .66613E-09    9.1599        .15756E-05** at limit **
  10  Prefactor     14.103        3.2973        .70506E-06   -.33572E-01
  11  Prefactor     23.903        3.6929        .60402E-06   -.49286E-01
  12  Prefactor     .22771E-06    8.0260       -.60326E-06** at limit **
  13  Prefactor     .16076E-06    35.485       -.11778E-04** at limit **
  14  Normalizat    1.2406        .29452        .14731E-04   -.16424E-04
  15  Prefactor     .87966        .80770E-01   -.14926E-04   -.29590E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 94.2916
  Prefactor  = 1.71307e-07
  norm       = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 8.96791
  Prefactor  = 1.11022e-10
  norm       = 1.55533
  Prefactor  = 4.996e-10
  norm       = 6.66134e-10
  Prefactor  = 14.1032
  Prefactor  = 23.9033
  Prefactor  = 2.27707e-07
  Prefactor  = 1.6076e-07
  Normalizat = 1.24065
  Prefactor  = 0.879657
 **********
 **   18 **HESSE 
 **********

 FCN=   10669.40     FROM HESSE     STATUS=OK           212 CALLS     1256 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     94.292        46.668        .10316E-03   -1.5514    
   2  Prefactor     .17131E-06    13.118        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm           .0000        1.3145        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .55511E-10    6.8918        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.9679        13.868        .33395E-03   -1.5648    
   6  Prefactor     .11102E-09    14.484        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.5553        .91268        .85360E-03   -1.5683    
   8  Prefactor     .49960E-09    36.959        .11979E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .66613E-09    9.2263        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     14.103        19.724        .26625E-03   -1.5633    
  11  Prefactor     23.903        19.742        .20456E-03   -1.5610    
  12  Prefactor     .22771E-06    12.611        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .16076E-06    52.132        .10723E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Normalizat    1.2406        .26887        .10427       -.85356    
  15  Prefactor     .87966        .70853E-01    .33181E-01   -.96856    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07882e-07
Minuit parameter uncertainties:
  1  46.6679
  2  0.00299821
  3  6.74267e-06
  4  4.69706e-05
  5  13.8685
  6  7.41277e-05
  7  0.912676
  8  0.000272278
  9  0.000156662
  10  19.7238
  11  19.7423
  12  0.0033893
  13  0.00579025
  14  0.26917
  15  0.07086
Done.

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

Extracting fit parameters...

4FGL J2035.4+1056
   Spectrum: LogParabola
480         norm:  1.555e+00  9.127e-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.797e-01  7.086e-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.241e+00  2.692e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.27
Ra Dec: 308.852 10.938
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 9.75e-08 +/- 5.72e-08
Energy Flux (Fixed Index): 3.46e-05 +/- 2.03e-05

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) = 10667.6906585
delta logL = 1.71055349399

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10667.6510492
delta logL = 1.750162778

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   10667.65     FROM MIGRAD    STATUS=FAILED        90 CALLS      260 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .71888        1.0044        .31538E-05   -.53855E-02
   2  alpha         3.4886        .97657        .10681E-01    .41402E-03
   3  Normalizat    1.0696        .31049        .49186E-03   -.21080E-04
   4  Prefactor     .90808        .82413E-01    .14439E-03    .45666E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   10667.65     FROM SIMPLEX   STATUS=UNCHANGED     71 CALLS      331 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .71888        1.0044        .53766E-05   -1.5691    
   2  alpha         3.4886        .97657        .16530E-02    .40655    
   3  Normalizat    1.0696        .31049        .40244E-03   -.90734    
   4  Prefactor     .90808        .82413E-01    .12950E-03   -.95859    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10667.65     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      364 TOTAL
                     EDM=   .16E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .71888        .72235        .12615E-06   -.28080E-02
   2  alpha         3.4886        .71280        .21361E-02   -.53540E-05
   3  Normalizat    1.0696        .30628        .19674E-04   -.80899E-05
   4  Prefactor     .90808        .81555E-01    .57757E-05    .15747E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.718876
  alpha      = 3.48861
  Normalizat = 1.06961
  Prefactor  = 0.908079
 **********
 **   18 **HESSE 
 **********

 FCN=   10667.65     FROM HESSE     STATUS=OK            25 CALLS      389 TOTAL
                     EDM=   .14E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .71888        .68793        .74821E-07   -1.5691    
   2  alpha         3.4886        .67977        .85445E-04    .40655    
   3  Normalizat    1.0696        .30589        .39348E-05   -.90734    
   4  Prefactor     .90808        .81463E-01    .11551E-05   -.95859    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3541e-12
Minuit parameter uncertainties:
  1  0.687927
  2  0.690116
  3  0.306395
  4  0.0814742
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/775208': 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) = 10667.6510492
delta logL = 1.75016285363

Extracting fit parameters...

4FGL J2035.4+1056
   Spectrum: LogParabola
480         norm:  7.189e-01  6.879e-01  0.000e+00  1.000e+06 ( 1.000e-11)
481        alpha:  3.489e+00  6.901e-01  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:  9.081e-01  8.147e-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.070e+00  3.064e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.34
Ra Dec: 308.852 10.938
Photon Index (Free Index): 3.49 +/- 0.69
Photon Flux (Free Index): 2.34e-07 +/- 1.01e-07
Energy Flux (Free Index): 4.18e-05 +/- 1.61e-05

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/775208/cmap_HighResolution_688780801_689040001_4FGL_J2035.4+1056_daily_bin1734.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.75e-08', energy_flux2='4.18e-05', photon_flux_error='5.72e-08', dlogl='1.75e+00', energy_flux='3.46e-05', photon_flux2='2.34e-07', job_status='DONE', time_completed='2022-11-02 00:44:42.234205', photon_index_error2='0.69', photon_index2='3.49', ts='7.27', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='1.61e-05', EG='1.24', time_epoch_completed='1667375082.23', return_code='0', job_id='775208', GAL2='0.91', EG2='1.07', return_code2='0', energy_flux_error='2.03e-05', photon_flux_error2='1.01e-07', ts2='11.34', photon_index='2.31' WHERE bin_id='1734' AND source_name='4FGL J2035.4+1056' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Nov  2 00:44:42 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 775208: <4FGL_J2035.4+1056_daily_bin1734> in cluster <slac> Done

Job <4FGL_J2035.4+1056_daily_bin1734> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Nov  2 00:30:30 2022
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Nov  2 00:30:31 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Nov  2 00:30:31 2022
Terminated at Wed Nov  2 00:44:43 2022
Results reported at Wed Nov  2 00:44:43 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2035.4+1056_daily_bin1734 308.852 10.938 688780801 689040001 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 :                                   822.05 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             399.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   851 sec.
    Turnaround time :                            853 sec.

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

