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 58 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J2035.4+1056_weekly_bin729
RA = 308.852, Dec = 10.938
tmin = 679881601, tmax = 680486401
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='204651', job_status='RUN', time_executed='2022-07-26 03:03:36.665016', time_epoch_executed='1658829816.67' WHERE source_name='4FGL J2035.4+1056' and cadence='weekly' and bin_id='729'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/204651

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/204651/ft1_4FGL_J2035.4+1056_weekly_bin729.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/204651/ft2_4FGL_J2035.4+1056_weekly_bin729.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/204651/ft1_4FGL_J2035.4+1056_weekly_bin729.fits outfile=/scratch/kocevski/204651/ft1_filteredMKT_4FGL_J2035.4+1056_weekly_bin729.fits ra=308.852 dec=10.938 rad=12.0 tmin=679881601.0 tmax=680486401.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 8.33
user 7.92
sys 0.35

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

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

Number of photons that the gtmktime cut: 2172

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/204651/ft1_filtered_4FGL_J2035.4+1056_weekly_bin729.fits" evtable="EVENTS" scfile=/scratch/kocevski/204651/ft2_4FGL_J2035.4+1056_weekly_bin729.fits sctable="SC_DATA" outfile=/scratch/kocevski/204651/ltcube_679881601_680486401_4FGL_J2035.4+1056_weekly_bin729.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/204651/ft2_4FGL_J2035.4+1056_weekly_bin729.fits
.....................!
real 31.12
user 30.67
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/204651/ft1_filtered_4FGL_J2035.4+1056_weekly_bin729.fits evtable="EVENTS" scfile=/scratch/kocevski/204651/ft2_4FGL_J2035.4+1056_weekly_bin729.fits sctable="SC_DATA" expcube=/scratch/kocevski/204651/ltcube_679881601_680486401_4FGL_J2035.4+1056_weekly_bin729.fits outfile=/scratch/kocevski/204651/expmap_679881601_680486401_4FGL_J2035.4+1056_weekly_bin729.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/204651/ltcube_679881601_680486401_4FGL_J2035.4+1056_weekly_bin729.fits
.....................!
real 193.77
user 188.53
sys 4.63

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_archive_v18/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_archive_v18/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/204651/ft1_filtered_4FGL_J2035.4+1056_weekly_bin729.fits scfile=/scratch/kocevski/204651/ft2_4FGL_J2035.4+1056_weekly_bin729.fits outfile=/scratch/kocevski/204651/cmap_679881601_680486401_4FGL_J2035.4+1056_weekly_bin729.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.59
user 0.42
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/204651/ft1_filtered_4FGL_J2035.4+1056_weekly_bin729.fits scfile=/scratch/kocevski/204651/ft2_4FGL_J2035.4+1056_weekly_bin729.fits outfile=/scratch/kocevski/204651/cmap_HighResolution_679881601_680486401_4FGL_J2035.4+1056_weekly_bin729.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.60
user 0.43
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/204651/ft1_filtered_4FGL_J2035.4+1056_weekly_bin729.fits', '/scratch/kocevski/204651/ft2_4FGL_J2035.4+1056_weekly_bin729.fits', expMap='/scratch/kocevski/204651/expmap_679881601_680486401_4FGL_J2035.4+1056_weekly_bin729.fits', expCube='/scratch/kocevski/204651/ltcube_679881601_680486401_4FGL_J2035.4+1056_weekly_bin729.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/204651/Model_4FGL_J2035.4+1056_weekly_bin729.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  1.000e-04  1.000e+04 ( 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  0.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/204651/ft1_filtered_4FGL_J2035.4+1056_weekly_bin729.fits
Spacecraft file(s): /scratch/kocevski/204651/ft2_4FGL_J2035.4+1056_weekly_bin729.fits
Exposure map: /scratch/kocevski/204651/expmap_679881601_680486401_4FGL_J2035.4+1056_weekly_bin729.fits
Exposure cube: /scratch/kocevski/204651/ltcube_679881601_680486401_4FGL_J2035.4+1056_weekly_bin729.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/204651/Model_4FGL_J2035.4+1056_weekly_bin729.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) = 23728.7456029

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.6198       1.0000         .10000E-03   10000.    
     3 'norm      '    2.0638       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.7568       1.0000         .10000E-03   10000.    
     5 'norm      '    .80731       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13734E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    27.614       1.0000         .10000E-03   10000.    
    10 'norm      '    1.0469       1.0000         .10000E-03   10000.    
    11 'norm      '    9.2850       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.5455       1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.074       1.0000         .10000E-03   10000.    
    15 'Prefactor '    23.126       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .88100       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .98142       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.

 FCN=   23728.74     FROM MIGRAD    STATUS=CONVERGED    386 CALLS     1909 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.302        .24854E-05** at limit **
   2  Prefactor     9.6203        11.562        .48171E-07    .18233E-06
   3  norm          2.0641        2.2932        .13163E-07   -.14546E-03
   4  Prefactor     2.7581        8.2135       -.31282E-08   -.58023E-03
   5  norm          .81653        2.6901       -.26720E-06   -.44431E-03
   6  Prefactor     .10003E-03    3.3352        .14370E-07** at limit **
   7  Prefactor     .10000E-03    12.456        .42975E-06** at limit **
   8  norm          .10000E-03    .20906        .23275E-06** at limit **
   9  Prefactor     27.605        32.887       -.10722E-04   -.46917E-03
  10  norm          1.0499        3.4342        .25295E-05   -.13082E-02
  11  norm          9.2843        16.225       -.28788E-06   -.95404E-05
  12  Prefactor     .10000E-03    6.8985        .31536E-06** at limit **
  13  Prefactor     1.5468        10.627        .51891E-06   -.48842E-03
  14  Prefactor     12.075        11.471        .62465E-07   -.33755E-03
  15  Prefactor     23.131        17.818        .41368E-05   -.99400E-04
  16  Prefactor     .10000E-03    16.020       -.22238E-05** at limit **
  17  Prefactor     .10000E-03    16.906       -.27523E-06** at limit **
  18  Normalizat    .88091        .19965       -.17098E-05   -.57140E-03
  19  Prefactor     .98142        .49486E-01    .26422E-06   -.18364E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 9.62026
  norm       = 2.06412
  Prefactor  = 2.75814
  norm       = 0.816529
  Prefactor  = 0.000100031
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 27.6052
  norm       = 1.04993
  norm       = 9.28434
  Prefactor  = 0.0001
  Prefactor  = 1.54676
  Prefactor  = 12.0746
  Prefactor  = 23.1312
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 0.880908
  Prefactor  = 0.981416
 **********
 **   18 **HESSE 
 **********

 FCN=   23728.74     FROM HESSE     STATUS=OK           274 CALLS     2183 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.361        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.6203        11.567        .12920E-03   -1.5088    
   3  norm          2.0641        2.2948        .23685E-03   -1.5421    
   4  Prefactor     2.7581        9.5737        .12258E-02   -1.5376    
   5  norm          .81653        2.6879        .45659E-03   -1.5527    
   6  Prefactor     .10003E-03    27.957        .51744E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .49113        .13087E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     27.605        33.973        .76237E-04   -1.4657    
  10  norm          1.0499        13.806        .43185E-02   -1.5503    
  11  norm          9.2843        16.217        .13152E-03   -1.5098    
  12  Prefactor     .10000E-03    6.9494        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.5468        29.671        .17140E-02   -1.5459    
  14  Prefactor     12.075        11.591        .57642E-03   -1.5013    
  15  Prefactor     23.131        17.664        .83295E-04   -1.4746    
  16  Prefactor     .10000E-03    16.495        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    17.021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .88091        .21755        .55207E-03   -.97134    
  19  Prefactor     .98142        .54282E-01    .13768E-03   -.93352    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12095e-08
Minuit parameter uncertainties:
  1  3.70899e-06
  2  11.5698
  3  2.29492
  4  9.57904
  5  2.68829
  6  0.00185667
  7  7.56988e-05
  8  1.88572e-05
  9  33.9964
  10  7.61635
  11  16.225
  12  7.67377e-06
  13  13.5564
  14  11.593
  15  17.6675
  16  0.000182454
  17  1.63793e-05
  18  0.217766
  19  0.0542846
Done.

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

Extracting fit parameters...

4FGL J2035.4+1056
   Spectrum: LogParabola
480         norm:  1.000e-04  1.886e-05  1.000e-04  1.000e+04 ( 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  0.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.814e-01  5.428e-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:  8.809e-01  2.178e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 308.852 10.938
Photon Flux Upper Limit: 6.11e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.17e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/204651/likelihoodResults_679881601_680486401_4FGL_J2035.4+1056_weekly_bin729.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): 102
logL (Free Index) = 23728.7512832
delta logL = -0.00979900115999

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 23728.7414895
delta logL = -5.31920886715e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10140E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3183       1.0000          .0000       5.0000    
     3 'Normalizat'    .88139       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98135       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=   23728.74     FROM MIGRAD    STATUS=FAILED        97 CALLS      265 TOTAL
                     EDM=   .29E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10011E-03    37.513        .13080E-02** at limit **
   2  alpha         2.3610        3.6075        .50000       -.13463E-04
   3  Normalizat    .88091        .44171E-01    .55207E-03    .10980E-03
   4  Prefactor     .98142        .11680E-01    .13768E-03    .36034E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   23728.74     FROM SIMPLEX   STATUS=UNCHANGED    148 CALLS      413 TOTAL
                     EDM=   .93E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10011E-03    37.513        .10639E-03** at limit **
   2  alpha         2.3610        3.6075        .37214E-03   -.13463E-04
   3  Normalizat    .88091        .44171E-01    .45633E-05    .10980E-03
   4  Prefactor     .98142        .11680E-01    .14617E-05    .36034E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   23728.74     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      456 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    115.06        .26159E-03** at limit **
   2  alpha         2.3826        3.8038        .50000        .12642E-06
   3  Normalizat    .88091        .14214        .22083E-04   -.13056E-03
   4  Prefactor     .98142        .37571E-01    .55074E-05   -.59947E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.38258
  Normalizat = 0.88091
  Prefactor  = 0.981416
 **********
 **   18 **HESSE 
 **********

 FCN=   23728.74     FROM HESSE     STATUS=OK            29 CALLS      485 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .52526        .52319E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3826        3.6789        .50000       -.46987E-01
   3  Normalizat    .88091        .19756        .44166E-05   -.97134    
   4  Prefactor     .98142        .52289E-01    .11015E-05   -.93352    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.98006e-11
Minuit parameter uncertainties:
  1  1.09072e-06
  2  50.5257
  3  0.197725
  4  0.0522912
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/204651': 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) = 23728.7414836
delta logL = 5.79875631956e-07

Extracting fit parameters...

4FGL J2035.4+1056
   Spectrum: LogParabola
480         norm:  1.000e-04  1.091e-06  1.000e-04  1.000e+04 ( 1.000e-11)
481        alpha:  2.383e+00  5.053e+01  0.000e+00  5.000e+00 ( 1.000e+00)
482         beta:  1.236e-01  0.000e+00  0.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.814e-01  5.229e-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:  8.809e-01  1.977e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/204651/cmap_HighResolution_679881601_680486401_4FGL_J2035.4+1056_weekly_bin729.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.17e-05', job_status='DONE', photon_flux_upper_limit='6.11e-08', time_completed='2022-07-26 03:39:32.841119', job_id='204651', GAL2='0.98', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1658831972.84', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='5.80e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='729' AND source_name='4FGL J2035.4+1056' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jul 26 03:39:32 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0087>
Subject: Job 204651: <4FGL_J2035.4+1056_weekly_bin729> in cluster <slac> Done

Job <4FGL_J2035.4+1056_weekly_bin729> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Jul 26 03:00:28 2022
Job was executed on host(s) <bullet0087>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul 26 03:02:29 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jul 26 03:02:29 2022
Terminated at Tue Jul 26 03:39:33 2022
Results reported at Tue Jul 26 03:39:33 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2035.4+1056_weekly_bin729 308.852 10.938 679881601 680486401 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 :                                   2151.60 sec.
    Max Memory :                                 633 MB
    Average Memory :                             389.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2937 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   2224 sec.
    Turnaround time :                            2345 sec.

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

