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


Performing analysis on: 4FGL_J2107.7+3529_weekly_bin715
RA = 316.943, Dec = 35.4885
tmin = 671414401, tmax = 672019201
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='974629', job_status='RUN', time_executed='2022-04-19 02:59:50.375293', time_epoch_executed='1650362390.38' WHERE source_name='4FGL J2107.7+3529' and cadence='weekly' and bin_id='715'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/974629

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/974629/ft1_4FGL_J2107.7+3529_weekly_bin715.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/974629/ft2_4FGL_J2107.7+3529_weekly_bin715.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/974629/ft1_4FGL_J2107.7+3529_weekly_bin715.fits outfile=/scratch/kocevski/974629/ft1_filteredMKT_4FGL_J2107.7+3529_weekly_bin715.fits ra=316.943 dec=35.4885 rad=12.0 tmin=671414401.0 tmax=672019201.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 7.67
user 7.31
sys 0.33

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/974629/ft2_4FGL_J2107.7+3529_weekly_bin715.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/974629/ft1_filteredMKT_4FGL_J2107.7+3529_weekly_bin715.fits evtable="EVENTS" outfile="/scratch/kocevski/974629/ft1_filtered_4FGL_J2107.7+3529_weekly_bin715.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.40
sys 0.15

Number of photons that the gtmktime cut: 10483

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/974629/ft1_filtered_4FGL_J2107.7+3529_weekly_bin715.fits" evtable="EVENTS" scfile=/scratch/kocevski/974629/ft2_4FGL_J2107.7+3529_weekly_bin715.fits sctable="SC_DATA" outfile=/scratch/kocevski/974629/ltcube_671414401_672019201_4FGL_J2107.7+3529_weekly_bin715.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/974629/ft2_4FGL_J2107.7+3529_weekly_bin715.fits
.....................!
real 30.34
user 29.78
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/974629/ft1_filtered_4FGL_J2107.7+3529_weekly_bin715.fits evtable="EVENTS" scfile=/scratch/kocevski/974629/ft2_4FGL_J2107.7+3529_weekly_bin715.fits sctable="SC_DATA" expcube=/scratch/kocevski/974629/ltcube_671414401_672019201_4FGL_J2107.7+3529_weekly_bin715.fits outfile=/scratch/kocevski/974629/expmap_671414401_672019201_4FGL_J2107.7+3529_weekly_bin715.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/974629/ltcube_671414401_672019201_4FGL_J2107.7+3529_weekly_bin715.fits
.....................!
real 193.02
user 187.15
sys 5.30

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_archive_v18/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/974629/ft1_filtered_4FGL_J2107.7+3529_weekly_bin715.fits scfile=/scratch/kocevski/974629/ft2_4FGL_J2107.7+3529_weekly_bin715.fits outfile=/scratch/kocevski/974629/cmap_671414401_672019201_4FGL_J2107.7+3529_weekly_bin715.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.60
user 0.43
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/974629/ft1_filtered_4FGL_J2107.7+3529_weekly_bin715.fits scfile=/scratch/kocevski/974629/ft2_4FGL_J2107.7+3529_weekly_bin715.fits outfile=/scratch/kocevski/974629/cmap_HighResolution_671414401_672019201_4FGL_J2107.7+3529_weekly_bin715.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.61
user 0.44
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/974629/ft1_filtered_4FGL_J2107.7+3529_weekly_bin715.fits evtable="EVENTS" scfile=/scratch/kocevski/974629/ft2_4FGL_J2107.7+3529_weekly_bin715.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/974629/Model_4FGL_J2107.7+3529_weekly_bin715.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/974629/ft1_filtered_4FGL_J2107.7+3529_weekly_bin715.fits.....................!
real 2191.04
user 2177.23
sys 1.43

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/974629/ft1_filtered_4FGL_J2107.7+3529_weekly_bin715.fits', '/scratch/kocevski/974629/ft2_4FGL_J2107.7+3529_weekly_bin715.fits', expMap='/scratch/kocevski/974629/expmap_671414401_672019201_4FGL_J2107.7+3529_weekly_bin715.fits', expCube='/scratch/kocevski/974629/ltcube_671414401_672019201_4FGL_J2107.7+3529_weekly_bin715.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/974629/Model_4FGL_J2107.7+3529_weekly_bin715.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  1.000e-04  1.000e+04 ( 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/974629/ft1_filtered_4FGL_J2107.7+3529_weekly_bin715.fits
Spacecraft file(s): /scratch/kocevski/974629/ft2_4FGL_J2107.7+3529_weekly_bin715.fits
Exposure map: /scratch/kocevski/974629/expmap_671414401_672019201_4FGL_J2107.7+3529_weekly_bin715.fits
Exposure cube: /scratch/kocevski/974629/ltcube_671414401_672019201_4FGL_J2107.7+3529_weekly_bin715.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/974629/Model_4FGL_J2107.7+3529_weekly_bin715.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) = 95860.3667765

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    4.3170       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.2863       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.8107       1.0000         .10000E-03   10000.    
     5 'norm      '    .10216E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    10.425       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.0054       1.0000         .10000E-03   10000.    
     9 'norm      '    .10105E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.648       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.5310       1.0000         .10000E-03   10000.    
    13 'norm      '    3.3455       1.0000         .10000E-03   10000.    
    14 'norm      '    1.0790       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .53518E-01   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1745       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0292       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   95860.37     FROM MIGRAD    STATUS=CONVERGED    424 CALLS     2075 TOTAL
                     EDM=   .39E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.9316         .0000    ** at limit **
   2  norm          4.3168        2.8372         .0000       -.36541E-02
   3  Prefactor     2.2863        .15727         .0000       -.95990E-02
   4  Prefactor     7.8126        11.270         .0000        .12156E-02
   5  norm          .10000E-03    .28986         .0000    ** at limit **
   6  norm          .10000E-03    .97011         .0000    ** at limit **
   7  norm          10.425        3.6787         .0000        .19283E-01
   8  Prefactor     5.0052        2.5668         .0000       -.46239E-02
   9  norm          .10000E-03    17.237         .0000    ** at limit **
  10  Prefactor     .10003E-03    68.477         .0000    ** at limit **
  11  Prefactor     15.647        21.958         .0000        .24656E-03
  12  Prefactor     2.5307        2.5020         .0000        .51441E-01
  13  norm          3.3458        2.9082         .0000        .19739E-02
  14  norm          1.0791        .69076         .0000        .68979E-03
  15  norm          .10000E-03    3.2936         .0000    ** at limit **
  16  Prefactor     .10000E-03    2.1623         .0000    ** at limit **
  17  Prefactor     .10000E-03    2.2957         .0000    ** at limit **
  18  norm          .53655E-01    .22750         .0000        .28520E-01
  19  Normalizat    1.1745        .15722         .0000       -.12397E-03
  20  Prefactor     1.0292        .18868E-01     .0000       -.44550E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 4.31684
  Prefactor  = 2.28629
  Prefactor  = 7.81256
  norm       = 0.000100002
  norm       = 0.0001
  norm       = 10.4247
  Prefactor  = 5.00518
  norm       = 0.000100001
  Prefactor  = 0.000100028
  Prefactor  = 15.6471
  Prefactor  = 2.53073
  norm       = 3.34579
  norm       = 1.07914
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0536553
  Normalizat = 1.1745
  Prefactor  = 1.02921
 **********
 **   18 **HESSE 
 **********

 FCN=   95860.37     FROM HESSE     STATUS=OK           295 CALLS     2370 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.9349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.3168        2.8352        .19388E-03   -1.5292    
   3  Prefactor     2.2863        .15698        .30144E-04   -1.5406    
   4  Prefactor     7.8126        11.148        .14348E-03   -1.5149    
   5  norm          .10000E-03    3.1197        .31509E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .98076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          10.425        3.6880        .62047E-03   -1.5062    
   8  Prefactor     5.0052        2.5638        .17974E-03   -1.5260    
   9  norm          .10000E-03    17.554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10003E-03    68.894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     15.647        21.906        .10125E-03   -1.4917    
  12  Prefactor     2.5307        2.4735        .12837E-02   -1.5390    
  13  norm          3.3458        2.8738        .22127E-03   -1.5342    
  14  norm          1.0791        .68971        .20021E-03   -1.5500    
  15  norm          .10000E-03    3.3193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.2350        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.3258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .53655E-01    .22663        .18574E-03   -1.5662    
  19  Normalizat    1.1745        .15512        .10738E-02   -.87394    
  20  Prefactor     1.0292        .18933E-01    .13371E-03   -.91762    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37801e-08
Minuit parameter uncertainties:
  1  2.87541e-05
  2  2.83533
  3  0.156982
  4  11.1511
  5  0.000156177
  6  5.35045e-06
  7  3.68807
  8  2.56386
  9  0.000202347
  10  0.00277864
  11  21.9177
  12  2.47364
  13  2.87395
  14  0.689717
  15  0.000204214
  16  1.08431e-05
  17  0.000113054
  18  0.220341
  19  0.155181
  20  0.018933
Done.

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

Extracting fit parameters...

4FGL J2107.7+3529
   Spectrum: PowerLaw
421    Prefactor:  1.565e+01  2.192e+01  1.000e-04  1.000e+04 ( 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.029e+00  1.893e-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:  1.175e+00  1.552e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.60
Ra Dec: 316.943 35.489
Photon Flux Upper Limit: 1.07e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.38e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/974629/likelihoodResults_671414401_672019201_4FGL_J2107.7+3529_weekly_bin715.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) = 95859.844407
delta logL = 0.520739421714

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 95859.8408056
delta logL = 0.52434081609

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8978       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8273       1.0000          .0000       10.000    
     3 'Normalizat'    1.1415       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0305       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   95859.84     FROM MIGRAD    STATUS=FAILED       114 CALLS      375 TOTAL
                     EDM=   .32E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8919        124.24        .10218E-02   -.17463E-03
   2  Index         3.8292        6.9020        .78793E-02    .14241E-02
   3  Normalizat    1.1412        .13067        .10872E-02   -.11377E-04
   4  Prefactor     1.0305        .15307E-01    .13362E-03    .68065E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   95859.84     FROM SIMPLEX   STATUS=UNCHANGED     84 CALLS      459 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8919        124.24        .32042E-03   -.17463E-03
   2  Index         3.8292        6.9020        .16070E-02    .14241E-02
   3  Normalizat    1.1412        .13067        .11287E-03   -.11377E-04
   4  Prefactor     1.0305        .15307E-01    .99132E-05    .68065E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   95859.84     FROM MIGRAD    STATUS=CONVERGED     36 CALLS      495 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8919        130.14        .40873E-04   -.24477E-03
   2  Index         3.8292        6.9082        .15759E-02   -.34513E-04
   3  Normalizat    1.1412        .15129        .43490E-04   -.12548E-04
   4  Prefactor     1.0305        .17584E-01    .53448E-05    .68065E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.89188
  Index      = 3.82916
  Normalizat = 1.14117
  Prefactor  = 1.03055
 **********
 **   18 **HESSE 
 **********

 FCN=   95859.84     FROM HESSE     STATUS=OK            23 CALLS      518 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8919        15.269        .16349E-05   -1.5313    
   2  Index         3.8292        2.0162        .63035E-04   -.23636    
   3  Normalizat    1.1412        .15192        .86979E-05   -.88441    
   4  Prefactor     1.0305        .17495E-01    .10690E-05   -.91718    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98419e-11
Minuit parameter uncertainties:
  1  15.284
  2  2.07899
  3  0.151977
  4  0.017495
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/974629': 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) = 95859.8408015
delta logL = 0.524344892401

Extracting fit parameters...

4FGL J2107.7+3529
   Spectrum: PowerLaw
421    Prefactor:  3.892e+00  1.528e+01  1.000e-04  1.000e+04 ( 1.000e-13)
422        Index:  3.829e+00  2.079e+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.031e+00  1.750e-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:  1.141e+00  1.520e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.76
Ra Dec: 316.943 35.489
Photon Index (Free Index): 3.83 +/- 2.08
Photon Flux (Free Index): 6.87e-08 +/- 5.71e-08
Energy Flux (Free Index): 1.06e-05 +/- 9.57e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/974629/cmap_HighResolution_671414401_672019201_4FGL_J2107.7+3529_weekly_bin715.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.38e-03', comment='SUCCESS', energy_flux2='1.06e-05', dlogl='5.24e-01', photon_flux2='6.87e-08', job_status='DONE', time_completed='2022-04-19 05:18:46.789731', photon_index_error2='2.08', photon_index2='3.83', ts='0.60', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='1.07e-07', energy_flux_error2='9.57e-06', EG='1.17', time_epoch_completed='1650370726.79', return_code='0', job_id='974629', GAL2='1.03', EG2='1.14', return_code2='0', photon_flux_error2='5.71e-08', ts2='1.76', photon_index='2.54' WHERE bin_id='715' AND source_name='4FGL J2107.7+3529' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Apr 19 05:18:46 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0198>
Subject: Job 974629: <4FGL_J2107.7+3529_weekly_bin715> in cluster <slac> Done

Job <4FGL_J2107.7+3529_weekly_bin715> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Apr 19 02:55:45 2022
Job was executed on host(s) <bullet0198>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 19 02:58:35 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr 19 02:58:35 2022
Terminated at Tue Apr 19 05:18:47 2022
Results reported at Tue Apr 19 05:18:47 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2107.7+3529_weekly_bin715 316.943 35.4885 671414401 672019201 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 :                                   8306.82 sec.
    Max Memory :                                 1278 MB
    Average Memory :                             527.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   3410 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   8412 sec.
    Turnaround time :                            8582 sec.

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

