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


Performing analysis on: 4FGL_J2107.7+3529_daily_bin1675
RA = 316.943, Dec = 35.4885
tmin = 673488001, tmax = 673747201
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='882985', job_status='RUN', time_executed='2022-05-09 01:23:36.699664', time_epoch_executed='1652084616.7' WHERE source_name='4FGL J2107.7+3529' and cadence='daily' and bin_id='1675'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/882985

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/882985/ft1_4FGL_J2107.7+3529_daily_bin1675.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/882985/ft2_4FGL_J2107.7+3529_daily_bin1675.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/882985/ft1_4FGL_J2107.7+3529_daily_bin1675.fits outfile=/scratch/kocevski/882985/ft1_filteredMKT_4FGL_J2107.7+3529_daily_bin1675.fits ra=316.943 dec=35.4885 rad=12.0 tmin=673488001.0 tmax=673747201.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 2.61
user 2.39
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/882985/ft2_4FGL_J2107.7+3529_daily_bin1675.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/882985/ft1_filteredMKT_4FGL_J2107.7+3529_daily_bin1675.fits evtable="EVENTS" outfile="/scratch/kocevski/882985/ft1_filtered_4FGL_J2107.7+3529_daily_bin1675.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.52
user 0.34
sys 0.17

Number of photons that the gtmktime cut: 7032

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/882985/ft1_filtered_4FGL_J2107.7+3529_daily_bin1675.fits" evtable="EVENTS" scfile=/scratch/kocevski/882985/ft2_4FGL_J2107.7+3529_daily_bin1675.fits sctable="SC_DATA" outfile=/scratch/kocevski/882985/ltcube_673488001_673747201_4FGL_J2107.7+3529_daily_bin1675.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/882985/ft2_4FGL_J2107.7+3529_daily_bin1675.fits
.....................!
real 14.81
user 14.45
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/882985/ft1_filtered_4FGL_J2107.7+3529_daily_bin1675.fits evtable="EVENTS" scfile=/scratch/kocevski/882985/ft2_4FGL_J2107.7+3529_daily_bin1675.fits sctable="SC_DATA" expcube=/scratch/kocevski/882985/ltcube_673488001_673747201_4FGL_J2107.7+3529_daily_bin1675.fits outfile=/scratch/kocevski/882985/expmap_673488001_673747201_4FGL_J2107.7+3529_daily_bin1675.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/882985/ltcube_673488001_673747201_4FGL_J2107.7+3529_daily_bin1675.fits
.....................!
real 192.00
user 186.03
sys 5.46

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/882985/ft1_filtered_4FGL_J2107.7+3529_daily_bin1675.fits scfile=/scratch/kocevski/882985/ft2_4FGL_J2107.7+3529_daily_bin1675.fits outfile=/scratch/kocevski/882985/cmap_673488001_673747201_4FGL_J2107.7+3529_daily_bin1675.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.57
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/882985/ft1_filtered_4FGL_J2107.7+3529_daily_bin1675.fits scfile=/scratch/kocevski/882985/ft2_4FGL_J2107.7+3529_daily_bin1675.fits outfile=/scratch/kocevski/882985/cmap_HighResolution_673488001_673747201_4FGL_J2107.7+3529_daily_bin1675.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.59
user 0.42
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/882985/ft1_filtered_4FGL_J2107.7+3529_daily_bin1675.fits evtable="EVENTS" scfile=/scratch/kocevski/882985/ft2_4FGL_J2107.7+3529_daily_bin1675.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/882985/Model_4FGL_J2107.7+3529_daily_bin1675.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/882985/ft1_filtered_4FGL_J2107.7+3529_daily_bin1675.fits.....................!
real 1417.31
user 1413.51
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/882985/ft1_filtered_4FGL_J2107.7+3529_daily_bin1675.fits', '/scratch/kocevski/882985/ft2_4FGL_J2107.7+3529_daily_bin1675.fits', expMap='/scratch/kocevski/882985/expmap_673488001_673747201_4FGL_J2107.7+3529_daily_bin1675.fits', expCube='/scratch/kocevski/882985/ltcube_673488001_673747201_4FGL_J2107.7+3529_daily_bin1675.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/882985/Model_4FGL_J2107.7+3529_daily_bin1675.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/882985/ft1_filtered_4FGL_J2107.7+3529_daily_bin1675.fits
Spacecraft file(s): /scratch/kocevski/882985/ft2_4FGL_J2107.7+3529_daily_bin1675.fits
Exposure map: /scratch/kocevski/882985/expmap_673488001_673747201_4FGL_J2107.7+3529_daily_bin1675.fits
Exposure cube: /scratch/kocevski/882985/ltcube_673488001_673747201_4FGL_J2107.7+3529_daily_bin1675.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/882985/Model_4FGL_J2107.7+3529_daily_bin1675.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) = 60928.9605792

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    8.0179       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.3491       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.761       1.0000         .10000E-03   10000.    
     5 'norm      '    1.4300       1.0000         .10000E-03   10000.    
     6 'norm      '    .57654       1.0000         .10000E-03   10000.    
     7 'norm      '    5.8529       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .55849       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    79.902       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.364       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .51415       1.0000         .10000E-03   10000.    
    13 'norm      '    .10777E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.6374       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.2128       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1156       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0198       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=   60928.96     FROM MIGRAD    STATUS=CONVERGED    411 CALLS     2122 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.809         .0000    ** at limit **
   2  norm          8.0174        3.7399         .0000        .16106E-02
   3  Prefactor     2.3491        .18143         .0000       -.14451E-03
   4  Prefactor     13.760        21.471         .0000        .18585E-02
   5  norm          1.4292        2.2637         .0000        .18981    
   6  norm          .57650        3.9796         .0000        .91632E-01
   7  norm          5.8531        3.8494         .0000        .22270E-02
   8  Prefactor     .56277        1.3213         .0000        .20912E-02
   9  norm          .10000E-03    6.4289         .0000    ** at limit **
  10  Prefactor     79.902        52.857         .0000       -.11650E-02
  11  Prefactor     10.365        21.442         .0000       -.41040E-04
  12  Prefactor     .51314        1.3334         .0000       -.34476E-03
  13  norm          .10000E-03    1.3909         .0000    ** at limit **
  14  norm          .10000E-03    .30720         .0000    ** at limit **
  15  norm          5.6377        6.7790         .0000        .31368E-03
  16  Prefactor     6.2137        4.4935         .0000        .27662E-02
  17  Prefactor     .10000E-03    1.4857         .0000    ** at limit **
  18  norm          .10000E-03    .17283         .0000    ** at limit **
  19  Normalizat    1.1154        .20625         .0000        .22102E-03
  20  Prefactor     1.0198        .23260E-01     .0000       -.59212E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 8.01738
  Prefactor  = 2.34912
  Prefactor  = 13.7602
  norm       = 1.42921
  norm       = 0.576503
  norm       = 5.85309
  Prefactor  = 0.562771
  norm       = 0.000100003
  Prefactor  = 79.902
  Prefactor  = 10.3645
  Prefactor  = 0.513139
  norm       = 0.000100001
  norm       = 0.0001
  norm       = 5.63772
  Prefactor  = 6.21375
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.11543
  Prefactor  = 1.01981
 **********
 **   18 **HESSE 
 **********

 FCN=   60928.96     FROM HESSE     STATUS=OK           301 CALLS     2423 TOTAL
                     EDM=   .44E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          8.0174        3.7421        .14160E-03   -1.5142    
   3  Prefactor     2.3491        .18126        .27414E-04   -1.5401    
   4  Prefactor     13.760        21.175        .10797E-03   -1.4966    
   5  norm          1.4292        2.2314        .18064E-02   -1.5469    
   6  norm          .57650        4.1463        .23159E-02   -1.5556    
   7  norm          5.8531        3.8525        .16600E-03   -1.5224    
   8  Prefactor     .56277        4.5311        .41864E-02   -1.5558    
   9  norm          .10000E-03    6.4291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     79.902        52.848        .44930E-04   -1.3918    
  11  Prefactor     10.365        21.410        .12446E-03   -1.5064    
  12  Prefactor     .51314        6.4456        .39987E-02   -1.5565    
  13  norm          .10000E-03    5.2166        .52369E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .31006        .13358E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.6377        6.7730        .16919E-03   -1.5233    
  16  Prefactor     6.2137        4.4806        .16106E-03   -1.5209    
  17  Prefactor     .10000E-03    1.4895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .17578        .10014E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.1154        .20433        .10853E-02   -.89258    
  20  Prefactor     1.0198        .23526E-01    .13022E-03   -.92072    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.39165e-08
Minuit parameter uncertainties:
  1  0.000136049
  2  3.74222
  3  0.18126
  4  21.1865
  5  2.23155
  6  3.09219
  7  3.85269
  8  3.19378
  9  0.000261116
  10  52.8788
  11  21.4263
  12  3.63742
  13  0.000159174
  14  8.79772e-07
  15  6.77389
  16  4.48084
  17  1.06918e-06
  18  1.91126e-07
  19  0.204477
  20  0.0235264
Done.

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

Extracting fit parameters...

4FGL J2107.7+3529
   Spectrum: PowerLaw
421    Prefactor:  1.036e+01  2.143e+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.020e+00  2.353e-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.115e+00  2.045e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/882985/likelihoodResults_673488001_673747201_4FGL_J2107.7+3529_daily_bin1675.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) = 60928.9144956
delta logL = 0.041536134886

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 60928.9059642
delta logL = 0.0500675494332

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.0309       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9247       1.0000          .0000       10.000    
     3 'Normalizat'    1.1076       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0201       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.

 FCN=   60928.91     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      267 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.0284        21.170        .14148E-03   -.35163E-03
   2  Index         2.9253        1.4104        .73499E-02   -.49463E-03
   3  Normalizat    1.1072        .18526        .10888E-02   -.94229E-03
   4  Prefactor     1.0201        .21153E-01    .13020E-03   -.40700E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.02843
  Index      = 2.92528
  Normalizat = 1.10717
  Prefactor  = 1.02008
 **********
 **   18 **HESSE 
 **********

 FCN=   60928.91     FROM HESSE     STATUS=OK            23 CALLS      290 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.0284        19.047        .56593E-05   -1.5141    
   2  Index         2.9253        1.2721        .29400E-03   -.42788    
   3  Normalizat    1.1072        .18531        .43554E-04   -.89522    
   4  Prefactor     1.0201        .21150E-01    .26041E-04   -.92063    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66727e-08
Minuit parameter uncertainties:
  1  19.0612
  2  1.28927
  3  0.185418
  4  0.0211502
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/882985': 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) = 60928.905962
delta logL = 0.0500697907992

Extracting fit parameters...

4FGL J2107.7+3529
   Spectrum: PowerLaw
421    Prefactor:  8.028e+00  1.906e+01  1.000e-04  1.000e+04 ( 1.000e-13)
422        Index:  2.925e+00  1.289e+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.020e+00  2.115e-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.107e+00  1.854e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.27
Ra Dec: 316.943 35.489

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/882985/cmap_HighResolution_673488001_673747201_4FGL_J2107.7+3529_daily_bin1675.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.19e-03', job_status='DONE', photon_flux_upper_limit='1.05e-07', time_completed='2022-05-09 02:54:10.018604', job_id='882985', GAL2='1.02', fit_tolerance='1e-08', EG2='1.11', EG='1.12', time_epoch_completed='1652090050.02', return_code2='0', ts='0.27', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='5.01e-02', ts2='0.38', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='1675' AND source_name='4FGL J2107.7+3529' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon May  9 02:54:10 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0157>
Subject: Job 882985: <4FGL_J2107.7+3529_daily_bin1675> in cluster <slac> Done

Job <4FGL_J2107.7+3529_daily_bin1675> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon May  9 01:20:40 2022
Job was executed on host(s) <bullet0157>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon May  9 01:23:10 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon May  9 01:23:10 2022
Terminated at Mon May  9 02:54:10 2022
Results reported at Mon May  9 02:54:10 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2107.7+3529_daily_bin1675 316.943 35.4885 673488001 673747201 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 :                                   5430.17 sec.
    Max Memory :                                 648 MB
    Average Memory :                             479.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2944 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   5460 sec.
    Turnaround time :                            5610 sec.

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

