/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 25 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 = 7430
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2100.0+2103_daily_bin1215
RA = 315.001, Dec = 21.0615
tmin = 554256001, tmax = 554515201
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='251821', job_status='RUN', time_executed='2021-09-26 00:03:08.043807', time_epoch_executed='1632639788.04' WHERE source_name='4FGL J2100.0+2103' and cadence='daily' and bin_id='1215'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/251821

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/251821/ft1_4FGL_J2100.0+2103_daily_bin1215.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/251821/ft2_4FGL_J2100.0+2103_daily_bin1215.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/251821/ft1_4FGL_J2100.0+2103_daily_bin1215.fits outfile=/scratch/kocevski/251821/ft1_filteredMKT_4FGL_J2100.0+2103_daily_bin1215.fits ra=315.001 dec=21.0615 rad=12.0 tmin=554256001.0 tmax=554515201.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 4.26
user 3.97
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/251821/ft2_4FGL_J2100.0+2103_daily_bin1215.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/251821/ft2_4FGL_J2100.0+2103_daily_bin1215.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/251821/ft1_filteredMKT_4FGL_J2100.0+2103_daily_bin1215.fits evtable="EVENTS" outfile="/scratch/kocevski/251821/ft1_filtered_4FGL_J2100.0+2103_daily_bin1215.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.54
user 0.35
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/251821/ft1_filtered_4FGL_J2100.0+2103_daily_bin1215.fits" evtable="EVENTS" scfile=/scratch/kocevski/251821/ft2_4FGL_J2100.0+2103_daily_bin1215.fits sctable="SC_DATA" outfile=/scratch/kocevski/251821/ltcube_554256001_554515201_4FGL_J2100.0+2103_daily_bin1215.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/251821/ft2_4FGL_J2100.0+2103_daily_bin1215.fits
.....................!
real 20.47
user 20.04
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/251821/ft1_filtered_4FGL_J2100.0+2103_daily_bin1215.fits evtable="EVENTS" scfile=/scratch/kocevski/251821/ft2_4FGL_J2100.0+2103_daily_bin1215.fits sctable="SC_DATA" expcube=/scratch/kocevski/251821/ltcube_554256001_554515201_4FGL_J2100.0+2103_daily_bin1215.fits outfile=/scratch/kocevski/251821/expmap_554256001_554515201_4FGL_J2100.0+2103_daily_bin1215.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/251821/ltcube_554256001_554515201_4FGL_J2100.0+2103_daily_bin1215.fits
.....................!
real 196.81
user 190.67
sys 5.44

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.
Added 214 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 J2100.0+2103 @ 315.001 21.0615

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/251821/ft1_filtered_4FGL_J2100.0+2103_daily_bin1215.fits scfile=/scratch/kocevski/251821/ft2_4FGL_J2100.0+2103_daily_bin1215.fits outfile=/scratch/kocevski/251821/cmap_554256001_554515201_4FGL_J2100.0+2103_daily_bin1215.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=315.001 yref=21.0615 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.56
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/251821/ft1_filtered_4FGL_J2100.0+2103_daily_bin1215.fits scfile=/scratch/kocevski/251821/ft2_4FGL_J2100.0+2103_daily_bin1215.fits outfile=/scratch/kocevski/251821/cmap_HighResolution_554256001_554515201_4FGL_J2100.0+2103_daily_bin1215.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=315.001 yref=21.0615 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.58
user 0.41
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/251821/ft1_filtered_4FGL_J2100.0+2103_daily_bin1215.fits evtable="EVENTS" scfile=/scratch/kocevski/251821/ft2_4FGL_J2100.0+2103_daily_bin1215.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/251821/Model_4FGL_J2100.0+2103_daily_bin1215.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 gamma Cygni
Working on...
/scratch/kocevski/251821/ft1_filtered_4FGL_J2100.0+2103_daily_bin1215.fits.....................!
real 41.41
user 39.72
sys 1.36

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/251821/ft1_filtered_4FGL_J2100.0+2103_daily_bin1215.fits', '/scratch/kocevski/251821/ft2_4FGL_J2100.0+2103_daily_bin1215.fits', expMap='/scratch/kocevski/251821/expmap_554256001_554515201_4FGL_J2100.0+2103_daily_bin1215.fits', expCube='/scratch/kocevski/251821/ltcube_554256001_554515201_4FGL_J2100.0+2103_daily_bin1215.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/251821/Model_4FGL_J2100.0+2103_daily_bin1215.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2100.0+2103'

4FGL J2100.0+2103
   Spectrum: PowerLaw
486    Prefactor:  2.217e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
487        Index:  2.427e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
488        Scale:  1.151e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/251821/ft1_filtered_4FGL_J2100.0+2103_daily_bin1215.fits
Spacecraft file(s): /scratch/kocevski/251821/ft2_4FGL_J2100.0+2103_daily_bin1215.fits
Exposure map: /scratch/kocevski/251821/expmap_554256001_554515201_4FGL_J2100.0+2103_daily_bin1215.fits
Exposure cube: /scratch/kocevski/251821/ltcube_554256001_554515201_4FGL_J2100.0+2103_daily_bin1215.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/251821/Model_4FGL_J2100.0+2103_daily_bin1215.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) = 1651.17573421

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.8871       1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.2681       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    197.91       1.0000         .10000E-03   10000.    
    10 'norm      '    .10326E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .28558E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10850E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.085       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    19.057       1.0000         .10000E-03   10000.    
    19 'norm      '    6.7877       1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.843       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    76.817       1.0000         .10000E-03   10000.    
    25 'Normalizat'    2.4499       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .38117       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1651.151     FROM MIGRAD    STATUS=CONVERGED    593 CALLS     3011 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.8863        21.921       -.17550E-05   -.35575E-03
   2  norm          .10000E-03    9.0048        .54326E-08** at limit **
   3  Prefactor     .10000E-03    16.463        .10090E-06** at limit **
   4  Prefactor     .10000E-03    51.543        .22638E-04** at limit **
   5  norm          3.2684        1.9577        .25101E-07   -.81347E-03
   6  Prefactor     .10000E-03    8.8815        .24063E-08** at limit **
   7  Prefactor     .10000E-03    69.318       -.93810E-05** at limit **
   8  norm          .10000E-03    20.906       -.15581E-05** at limit **
   9  norm          197.90        202.50       -.88462E-05    .36666E-05
  10  norm          .10000E-03    251.99        .12850E-03** at limit **
  11  Prefactor     .10000E-03    59.653       -.56409E-05** at limit **
  12  Prefactor     .10000E-03    469.55       -.14611E-04** at limit **
  13  Prefactor     .10000E-03    281.42        .51389E-04** at limit **
  14  Prefactor     11.072        42.490       -.18910E-05    .26936E-05
  15  Prefactor     .10000E-03    71.761       -.51581E-05** at limit **
  16  Prefactor     .10000E-03    24.142        .42851E-05** at limit **
  17  Prefactor     .10000E-03    61.157       -.87626E-05** at limit **
  18  norm          19.056        35.453       -.50913E-07   -.22428E-04
  19  norm          6.7874        12.037       -.51684E-07   -.24377E-04
  20  Prefactor     12.841        19.730       -.74705E-06   -.30276E-03
  21  Prefactor     .10000E-03    30.296       -.57019E-05** at limit **
  22  Prefactor     .10000E-03    430.48       -.32601E-03** at limit **
  23  norm          .10000E-03    5.0995       -.24143E-06** at limit **
  24  Prefactor     76.910        188.77        .99411E-04    .16944E-04
  25  Normalizat    2.4498        .62918       -.31770E-05    .10453E-04
  26  Prefactor     .38116        .13691        .16401E-06   -.73895E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.88633
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.2684
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 197.901
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 11.0717
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 19.056
  norm       = 6.78742
  Prefactor  = 12.841
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 76.9102
  Normalizat = 2.44981
  Prefactor  = 0.381161
 **********
 **   18 **HESSE 
 **********

 FCN=   1651.151     FROM HESSE     STATUS=OK           448 CALLS     3459 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.8863        22.076        .67226E-03   -1.5112    
   2  norm          .10000E-03    9.0069        .11911E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    16.486        .16100E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    51.700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.2684        1.9680        .41160E-04   -1.5346    
   6  Prefactor     .10000E-03    8.8821        .11829E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    69.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    21.055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          197.90        202.61        .14359E-03   -1.2885    
  10  norm          .10000E-03    251.80        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    59.742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    474.43        .21410E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    281.43        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.072        43.002        .12033E-03   -1.5042    
  15  Prefactor     .10000E-03    71.768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    24.167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    61.237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          19.056        35.447        .91748E-04   -1.4835    
  19  norm          6.7874        12.031        .15401E-03   -1.5187    
  20  Prefactor     12.841        19.804        .55888E-03   -1.4991    
  21  Prefactor     .10000E-03    30.363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    430.63        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    5.1082        .89627E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     76.910        189.02        .22908E-03   -1.3952    
  25  Normalizat    2.4498        .72287        .35459E-03   -.53699    
  26  Prefactor     .38116        .15571        .18195E-03   -1.1778    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12927e-09
Minuit parameter uncertainties:
  1  22.096
  2  3.71042e-06
  3  5.50896e-06
  4  1.77072e-05
  5  1.96807
  6  1.58936e-06
  7  4.0131e-05
  8  4.60826e-05
  9  203.332
  10  9.69609e-07
  11  0.000245158
  12  0.0017484
  13  2.1179e-05
  14  43.1232
  15  9.71147e-06
  16  5.29009e-06
  17  7.5906e-05
  18  35.4865
  19  12.0357
  20  19.8144
  21  1.75969e-05
  22  0.00199984
  23  5.09003e-05
  24  190.531
  25  0.726332
  26  0.155882
Done.

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

Extracting fit parameters...

4FGL J2100.0+2103
   Spectrum: PowerLaw
486    Prefactor:  1.000e-04  1.748e-03  1.000e-04  1.000e+04 ( 1.000e-13)
487        Index:  2.427e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
488        Scale:  1.151e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
756    Prefactor:  3.812e-01  1.559e-01  0.000e+00  1.000e+01 ( 1.000e+00)
757        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
758        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
755   Normalization:  2.450e+00  7.263e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 315.001 21.061
Photon Flux Upper Limit: 6.90e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.34e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/251821/likelihoodResults_554256001_554515201_4FGL_J2100.0+2103_daily_bin1215.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) = 1651.15139015
delta logL = -9.88920760392e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1651.15139014
delta logL = -9.88810438685e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96363E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4266       1.0000          .0000       10.000    
     3 'Normalizat'    2.4498       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .38116       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1650.224     FROM MIGRAD    STATUS=CONVERGED    112 CALLS      256 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .48554        13.258        .56533E-02    .43404E-04
   2  Index         5.2937        3.7855        .71510E-01    .48544E-04
   3  Normalizat    2.1974        .23705        .82919E-01    .52788E-04
   4  Prefactor     .41211        .54507E-01    .37980E-01    .48563E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.48554
  Index      = 5.29375
  Normalizat = 2.19744
  Prefactor  = 0.412108
 **********
 **   18 **HESSE 
 **********

 FCN=   1650.224     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      287 TOTAL
                     EDM=   .62E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .48554        21.948        .25386E-04   -1.5569    
   2  Index         5.2937        7.4088        .30003E-02    .58783E-01
   3  Normalizat    2.1974        .63596        .36689E-03   -.59689    
   4  Prefactor     .41211        .14229        .17554E-03   -1.1619    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.20451e-08
Minuit parameter uncertainties:
  1  6.53084
  2  5.93766
  3  0.638497
  4  0.142413
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/251821': 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) = 1650.22425772
delta logL = 0.927122536318

Extracting fit parameters...

4FGL J2100.0+2103
   Spectrum: PowerLaw
486    Prefactor:  4.855e-01  6.531e+00  1.000e-04  1.000e+04 ( 1.000e-13)
487        Index:  5.294e+00  5.938e+00  0.000e+00  1.000e+01 (-1.000e+00)
488        Scale:  1.151e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
756    Prefactor:  4.121e-01  1.424e-01  0.000e+00  1.000e+01 ( 1.000e+00)
757        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
758        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
755   Normalization:  2.197e+00  6.385e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.94
Ra Dec: 315.001 21.061
Photon Index (Free Index): 5.29 +/- 5.94
Photon Flux (Free Index): 4.73e-07 +/- 4.50e-07
Energy Flux (Free Index): 6.14e-05 +/- 7.09e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/251821/cmap_HighResolution_554256001_554515201_4FGL_J2100.0+2103_daily_bin1215.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.34e-02', comment='SUCCESS', energy_flux2='6.14e-05', dlogl='9.27e-01', photon_flux2='4.73e-07', job_status='DONE', time_completed='2021-09-26 00:11:52.343585', photon_index_error2='5.94', photon_index2='5.29', ts='-0.00', fit_tolerance='1e-08', GAL='0.38', photon_index_error='0.00', photon_flux_upper_limit='6.90e-07', energy_flux_error2='7.09e-05', EG='2.45', time_epoch_completed='1632640312.34', return_code='0', job_id='251821', GAL2='0.41', EG2='2.20', return_code2='102', photon_flux_error2='4.50e-07', ts2='1.94', photon_index='2.43' WHERE bin_id='1215' AND source_name='4FGL J2100.0+2103' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 00:11:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0143>
Subject: Job 251821: <4FGL_J2100.0+2103_daily_bin1215> in cluster <slac> Done

Job <4FGL_J2100.0+2103_daily_bin1215> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep 25 23:55:53 2021
Job was executed on host(s) <bullet0143>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 00:02:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 26 00:02:28 2021
Terminated at Sun Sep 26 00:11:53 2021
Results reported at Sun Sep 26 00:11:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2100.0+2103_daily_bin1215 315.001 21.0615 554256001 554515201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2100.0+2103 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   504.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             337.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   564 sec.
    Turnaround time :                            960 sec.

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

