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


Performing analysis on: 4FGL_J2107.7+3529_weekly_bin748
RA = 316.943, Dec = 35.4885
tmin = 691372801, tmax = 691977601
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='24336', job_status='RUN', time_executed='2022-12-06 02:05:33.459963', time_epoch_executed='1670321133.46' WHERE source_name='4FGL J2107.7+3529' and cadence='weekly' and bin_id='748'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/24336

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/24336/ft1_4FGL_J2107.7+3529_weekly_bin748.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/24336/ft2_4FGL_J2107.7+3529_weekly_bin748.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/24336/ft1_4FGL_J2107.7+3529_weekly_bin748.fits outfile=/scratch/kocevski/24336/ft1_filteredMKT_4FGL_J2107.7+3529_weekly_bin748.fits ra=316.943 dec=35.4885 rad=12.0 tmin=691372801.0 tmax=691977601.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 5.53
user 5.20
sys 0.29

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/24336/ft2_4FGL_J2107.7+3529_weekly_bin748.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/24336/ft2_4FGL_J2107.7+3529_weekly_bin748.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/24336/ft1_filteredMKT_4FGL_J2107.7+3529_weekly_bin748.fits evtable="EVENTS" outfile="/scratch/kocevski/24336/ft1_filtered_4FGL_J2107.7+3529_weekly_bin748.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.57
user 0.37
sys 0.18

Number of photons that the gtmktime cut: 17054

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/24336/ft1_filtered_4FGL_J2107.7+3529_weekly_bin748.fits" evtable="EVENTS" scfile=/scratch/kocevski/24336/ft2_4FGL_J2107.7+3529_weekly_bin748.fits sctable="SC_DATA" outfile=/scratch/kocevski/24336/ltcube_691372801_691977601_4FGL_J2107.7+3529_weekly_bin748.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/24336/ft2_4FGL_J2107.7+3529_weekly_bin748.fits
.....................!
real 27.34
user 26.72
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/24336/ft1_filtered_4FGL_J2107.7+3529_weekly_bin748.fits evtable="EVENTS" scfile=/scratch/kocevski/24336/ft2_4FGL_J2107.7+3529_weekly_bin748.fits sctable="SC_DATA" expcube=/scratch/kocevski/24336/ltcube_691372801_691977601_4FGL_J2107.7+3529_weekly_bin748.fits outfile=/scratch/kocevski/24336/expmap_691372801_691977601_4FGL_J2107.7+3529_weekly_bin748.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/24336/ltcube_691372801_691977601_4FGL_J2107.7+3529_weekly_bin748.fits
.....................!
real 192.09
user 185.61
sys 5.54

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 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.
Extended source gamma Cygni in ROI with RadialDisk spatial model.
Extended source Cygnus Cocoon in ROI with RadialGaussian spatial model.
Extended source HB 21 in ROI with RadialDisk spatial model.
Added 197 point sources and 4 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 J2107.7+3529 @ 316.943 35.4885

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/24336/ft1_filtered_4FGL_J2107.7+3529_weekly_bin748.fits scfile=/scratch/kocevski/24336/ft2_4FGL_J2107.7+3529_weekly_bin748.fits outfile=/scratch/kocevski/24336/cmap_691372801_691977601_4FGL_J2107.7+3529_weekly_bin748.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=316.943 yref=35.4885 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.63
user 0.45
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/24336/ft1_filtered_4FGL_J2107.7+3529_weekly_bin748.fits scfile=/scratch/kocevski/24336/ft2_4FGL_J2107.7+3529_weekly_bin748.fits outfile=/scratch/kocevski/24336/cmap_HighResolution_691372801_691977601_4FGL_J2107.7+3529_weekly_bin748.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=316.943 yref=35.4885 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.62
user 0.44
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/24336/ft1_filtered_4FGL_J2107.7+3529_weekly_bin748.fits evtable="EVENTS" scfile=/scratch/kocevski/24336/ft2_4FGL_J2107.7+3529_weekly_bin748.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/24336/Model_4FGL_J2107.7+3529_weekly_bin748.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 Cocoon
adding source Cygnus Loop
adding source EG_v02
adding source GAL_V02
adding source HB 21
adding source gamma Cygni
Working on...
/scratch/kocevski/24336/ft1_filtered_4FGL_J2107.7+3529_weekly_bin748.fits.....................!
real 3202.44
user 3185.21
sys 2.33

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/24336/ft1_filtered_4FGL_J2107.7+3529_weekly_bin748.fits', '/scratch/kocevski/24336/ft2_4FGL_J2107.7+3529_weekly_bin748.fits', expMap='/scratch/kocevski/24336/expmap_691372801_691977601_4FGL_J2107.7+3529_weekly_bin748.fits', expCube='/scratch/kocevski/24336/ltcube_691372801_691977601_4FGL_J2107.7+3529_weekly_bin748.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/24336/Model_4FGL_J2107.7+3529_weekly_bin748.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2107.7+3529'

4FGL J2107.7+3529
   Spectrum: PowerLaw
421    Prefactor:  3.801e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
422        Index:  2.542e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
423        Scale:  9.237e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/24336/ft1_filtered_4FGL_J2107.7+3529_weekly_bin748.fits
Spacecraft file(s): /scratch/kocevski/24336/ft2_4FGL_J2107.7+3529_weekly_bin748.fits
Exposure map: /scratch/kocevski/24336/expmap_691372801_691977601_4FGL_J2107.7+3529_weekly_bin748.fits
Exposure cube: /scratch/kocevski/24336/ltcube_691372801_691977601_4FGL_J2107.7+3529_weekly_bin748.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/24336/Model_4FGL_J2107.7+3529_weekly_bin748.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) = 148665.498675

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19679E-04   1.0000          .0000       .10000E+07
     2 'norm      '    1.8087       1.0000          .0000       .10000E+07
     3 'Prefactor '    2.3140       1.0000         .10000E-03   10000.    
     4 'norm      '    .42744E-08   1.0000          .0000       .10000E+07
     5 'norm      '    3.5737       1.0000          .0000       .10000E+07
     6 'Prefactor '    .59734       1.0000         .10000E-03   10000.    
     7 'norm      '    .75452       1.0000          .0000       .10000E+07
     8 'Prefactor '    15.367       1.0000          .0000       .10000E+07
     9 'Prefactor '    14.047       1.0000          .0000       .10000E+07
    10 'Prefactor '    .89373E-08   1.0000          .0000       .10000E+07
    11 'norm      '    4.2658       1.0000          .0000       .10000E+07
    12 'norm      '    .11102E-09   1.0000          .0000       .10000E+07
    13 'norm      '    .10327E-02   1.0000          .0000       .10000E+07
    14 'Prefactor '    6.6206       1.0000          .0000       .10000E+07
    15 'Prefactor '    .92426E-07   1.0000          .0000       .10000E+07
    16 'norm      '    .51496       1.0000          .0000       .10000E+07
    17 'Normalizat'    .93114       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.0869       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7300E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   148665.5     FROM MIGRAD    STATUS=CONVERGED     94 CALLS     1313 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    14.545        .15894E-06** at limit **
   2  norm          1.8085        2.0799       -.18223E-07   -.12780E-02
   3  Prefactor     2.3140        .12246        .38497E-08    .11180E-02
   4  norm           .0000        .27217        .55085E-08** at limit **
   5  norm          3.5734        2.5855       -.31970E-08   -.94228E-04
   6  Prefactor     .59718        1.0223       -.16444E-06   -.18479E-03
   7  norm          .70125        .57238       -.11530E-07    .41383E-01
   8  Prefactor     15.393        1.0080       -.67110E-09    .33257E-02
   9  Prefactor     14.010        1.1584       -.67775E-08    .85821E-01
  10  Prefactor      .0000        .75544        .10807E-08** at limit **
  11  norm          4.2663        2.0941        .22862E-08   -.42378E-03
  12  norm           .0000        .20111        .32342E-07** at limit **
  13  norm          .92704E-08    28.004        .99202E-07** at limit **
  14  Prefactor     6.6216        3.0040        .17043E-07    .15654E-02
  15  Prefactor      .0000        1.4547       -.43734E-07** at limit **
  16  norm          .51486        .32430        .22412E-07    .19041E-01
  17  Normalizat    .93119        .11921       -.14540E-05   -.13805E-03
  18  Prefactor     1.0869        .15108E-01    .52570E-07   -.54477E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  norm       = 1.80846
  Prefactor  = 2.314
  norm       = 0
  norm       = 3.57337
  Prefactor  = 0.597182
  norm       = 0.701251
  Prefactor  = 15.3927
  Prefactor  = 14.0099
  Prefactor  = 0
  norm       = 4.26632
  norm       = 0
  norm       = 9.27036e-09
  Prefactor  = 6.62159
  Prefactor  = 0
  norm       = 0.514861
  Normalizat = 0.931186
  Prefactor  = 1.08686
 **********
 **   18 **HESSE 
 **********

 FCN=   148665.5     FROM HESSE     STATUS=OK           296 CALLS     1609 TOTAL
                     EDM=   .65E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    14.588        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.8085        2.0814        .77663E-03   -1.5681    
   3  Prefactor     2.3140        .12286        .66111E-02   -1.5404    
   4  norm           .0000        .27234        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.5734        2.5852        .53435E-03   -1.5670    
   6  Prefactor     .59718        .82433        .80487E-01   -1.5553    
   7  norm          .70125        20.206        .56388E-03   -1.5691    
   8  Prefactor     15.393        27.181        .25523E-03   -1.5629    
   9  Prefactor     14.010        14.703        .26699E-03   -1.5633    
  10  Prefactor      .0000        .76048        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.2663        2.1075        .48758E-03   -1.5667    
  12  norm           .0000        .20060        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .92704E-08    1.0799        .14741E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.6216        3.0284        .38976E-03   -1.5656    
  15  Prefactor      .0000        1.4614        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .51486        .33236        .77219E-03   -1.5694    
  17  Normalizat    .93119        .13036        .26050       -.95373    
  18  Prefactor     1.0869        .15252E-01    .38109E-01   -.89888    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.45492e-06
Minuit parameter uncertainties:
  1  4.18116e-05
  2  2.08138
  3  0.122856
  4  9.56411e-08
  5  2.5852
  6  0.824348
  7  7.52844
  8  27.1814
  9  14.7034
  10  5.4494e-07
  11  2.10753
  12  2.0344e-06
  13  0.000199815
  14  3.02838
  15  3.69348e-06
  16  0.33236
  17  0.1304
  18  0.0152517
Done.

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

Extracting fit parameters...

4FGL J2107.7+3529
   Spectrum: PowerLaw
421    Prefactor:  1.401e+01  1.470e+01  0.000e+00  1.000e+06 ( 1.000e-13)
422        Index:  2.542e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
423        Scale:  9.237e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
719    Prefactor:  1.087e+00  1.525e-02  0.000e+00  1.000e+01 ( 1.000e+00)
720        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
721        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
718   Normalization:  9.312e-01  1.304e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.08
Ra Dec: 316.943 35.489
Photon Index (Fixed Index): 2.54 +/- 0.00
Photon Flux (Fixed Index): 2.59e-08 +/- 2.71e-08
Energy Flux (Fixed Index): 7.18e-06 +/- 7.54e-06

TS (Fixed Index): 1.08
Ra Dec: 316.943 35.489
Photon Flux Upper Limit: 7.66e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.98e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/24336/likelihoodResults_691372801_691977601_4FGL_J2107.7+3529_weekly_bin748.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) = 148664.408888
delta logL = 1.05447186952

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 148664.339333
delta logL = 1.12402654896

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .47666E-01   1.0000          .0000       .10000E+07
     2 'Index     '    5.9920       1.0000          .0000       10.000    
     3 'Normalizat'    .89672       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0887       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7300E+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=   148664.3     FROM MIGRAD    STATUS=FAILED       110 CALLS      452 TOTAL
                     EDM=   .31E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .45732E-01    .74457        .43204E-04** at limit **
   2  Index         6.0130        3.4765        .12539E-01    .81428E-02
   3  Normalizat    .89680        .84948E-01    .11882E-02    .19289E-04
   4  Prefactor     1.0887        .10261E-01    .13125E-03    .70679E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   148664.3     FROM SIMPLEX   STATUS=UNCHANGED     81 CALLS      533 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .45732E-01    .74457        .84253E-05** at limit **
   2  Index         6.0130        3.4765        .37175E-02    .81428E-02
   3  Normalizat    .89680        .84948E-01    .13904E-03    .19289E-04
   4  Prefactor     1.0887        .10261E-01    .12998E-04    .70679E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   148664.3     FROM MIGRAD    STATUS=CONVERGED     35 CALLS      568 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .45733E-01    .83506        .86407E-05** at limit **
   2  Index         6.0130        3.6383        .25078E-02    .30865E-03
   3  Normalizat    .89680        .10940        .47527E-04    .45927E-05
   4  Prefactor     1.0887        .13023E-01    .52501E-05    .23560E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0457329
  Index      = 6.013
  Normalizat = 0.896804
  Prefactor  = 1.08875
 **********
 **   18 **HESSE 
 **********

 FCN=   148664.3     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      595 TOTAL
                     EDM=   .29E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .45733E-01    .85289        .17281E-05   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         6.0130        3.6663        .50155E-03    .20401    
   3  Normalizat    .89680        .11706        .95054E-05   -.96573    
   4  Prefactor     1.0887        .13876E-01    .10500E-05   -.89827    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.8988e-12
Minuit parameter uncertainties:
  1  0.394993
  2  4.1434
  3  0.117094
  4  0.0138762
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/24336': 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): 102
logL (Free Index) = 148664.339319
delta logL = 1.12404083755

Extracting fit parameters...

4FGL J2107.7+3529
   Spectrum: PowerLaw
421    Prefactor:  4.573e-02  3.950e-01  0.000e+00  1.000e+06 ( 1.000e-13)
422        Index:  6.013e+00  4.143e+00  0.000e+00  1.000e+01 (-1.000e+00)
423        Scale:  9.237e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
719    Prefactor:  1.089e+00  1.388e-02  0.000e+00  1.000e+01 ( 1.000e+00)
720        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
721        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
718   Normalization:  8.968e-01  1.171e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.58
Ra Dec: 316.943 35.489
Photon Index (Free Index): 6.01 +/- 4.14
Photon Flux (Free Index): 5.89e-08 +/- 3.74e-08
Energy Flux (Free Index): 7.33e-06 +/- 5.40e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -3.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  3.330e+00 [aplpy.core]
Saving /scratch/kocevski/24336/cmap_HighResolution_691372801_691977601_4FGL_J2107.7+3529_weekly_bin748.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.98e-03', comment='SUCCESS', photon_flux='2.59e-08', energy_flux2='7.33e-06', photon_flux_error='2.71e-08', dlogl='1.12e+00', energy_flux='7.18e-06', photon_flux2='5.89e-08', job_status='DONE', time_completed='2022-12-06 04:58:40.766794', photon_index_error2='4.14', photon_index2='6.01', ts='1.08', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='7.66e-08', energy_flux_error2='5.40e-06', EG='0.93', time_epoch_completed='1670331520.77', return_code='0', job_id='24336', GAL2='1.09', EG2='0.90', return_code2='102', energy_flux_error='7.54e-06', photon_flux_error2='3.74e-08', ts2='3.58', photon_index='2.54' WHERE bin_id='748' AND source_name='4FGL J2107.7+3529' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Dec  6 04:58:40 PST 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0116>
Subject: Job 24336: <4FGL_J2107.7+3529_weekly_bin748> in cluster <slac> Done

Job <4FGL_J2107.7+3529_weekly_bin748> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Dec  6 02:05:21 2022
Job was executed on host(s) <bullet0116>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  6 02:05:23 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  6 02:05:23 2022
Terminated at Tue Dec  6 04:58:42 2022
Results reported at Tue Dec  6 04:58:42 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2107.7+3529_weekly_bin748 316.943 35.4885 691372801 691977601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2107.7+3529 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   10368.00 sec.
    Max Memory :                                 1274 MB
    Average Memory :                             598.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10398 sec.
    Turnaround time :                            10401 sec.

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

