/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 120 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 = 7394
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2121.0+1901_daily_bin651
RA = 320.26, Dec = 19.0324
tmin = 408067201, tmax = 408326401
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='467005', job_status='RUN', time_executed='2021-09-26 12:14:12.593908', time_epoch_executed='1632683652.59' WHERE source_name='4FGL J2121.0+1901' and cadence='daily' and bin_id='651'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/467005

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/467005/ft1_4FGL_J2121.0+1901_daily_bin651.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/467005/ft2_4FGL_J2121.0+1901_daily_bin651.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/467005/ft1_4FGL_J2121.0+1901_daily_bin651.fits outfile=/scratch/kocevski/467005/ft1_filteredMKT_4FGL_J2121.0+1901_daily_bin651.fits ra=320.26 dec=19.0324 rad=12.0 tmin=408067201.0 tmax=408326401.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 3.93
user 3.62
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/467005/ft2_4FGL_J2121.0+1901_daily_bin651.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/467005/ft2_4FGL_J2121.0+1901_daily_bin651.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/467005/ft1_filteredMKT_4FGL_J2121.0+1901_daily_bin651.fits evtable="EVENTS" outfile="/scratch/kocevski/467005/ft1_filtered_4FGL_J2121.0+1901_daily_bin651.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.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/467005/ft1_filtered_4FGL_J2121.0+1901_daily_bin651.fits" evtable="EVENTS" scfile=/scratch/kocevski/467005/ft2_4FGL_J2121.0+1901_daily_bin651.fits sctable="SC_DATA" outfile=/scratch/kocevski/467005/ltcube_408067201_408326401_4FGL_J2121.0+1901_daily_bin651.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/467005/ft2_4FGL_J2121.0+1901_daily_bin651.fits
.....................!
real 14.40
user 13.98
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/467005/ft1_filtered_4FGL_J2121.0+1901_daily_bin651.fits evtable="EVENTS" scfile=/scratch/kocevski/467005/ft2_4FGL_J2121.0+1901_daily_bin651.fits sctable="SC_DATA" expcube=/scratch/kocevski/467005/ltcube_408067201_408326401_4FGL_J2121.0+1901_daily_bin651.fits outfile=/scratch/kocevski/467005/expmap_408067201_408326401_4FGL_J2121.0+1901_daily_bin651.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/467005/ltcube_408067201_408326401_4FGL_J2121.0+1901_daily_bin651.fits
.....................!
real 190.52
user 185.46
sys 4.52

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.
Added 193 point sources and 1 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 J2121.0+1901 @ 320.26 19.0324

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/467005/ft1_filtered_4FGL_J2121.0+1901_daily_bin651.fits scfile=/scratch/kocevski/467005/ft2_4FGL_J2121.0+1901_daily_bin651.fits outfile=/scratch/kocevski/467005/cmap_408067201_408326401_4FGL_J2121.0+1901_daily_bin651.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=320.26 yref=19.0324 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.55
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/467005/ft1_filtered_4FGL_J2121.0+1901_daily_bin651.fits scfile=/scratch/kocevski/467005/ft2_4FGL_J2121.0+1901_daily_bin651.fits outfile=/scratch/kocevski/467005/cmap_HighResolution_408067201_408326401_4FGL_J2121.0+1901_daily_bin651.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=320.26 yref=19.0324 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.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/467005/ft1_filtered_4FGL_J2121.0+1901_daily_bin651.fits evtable="EVENTS" scfile=/scratch/kocevski/467005/ft2_4FGL_J2121.0+1901_daily_bin651.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/467005/Model_4FGL_J2121.0+1901_daily_bin651.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source Cygnus Loop
adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/467005/ft1_filtered_4FGL_J2121.0+1901_daily_bin651.fits...!
real 14.51
user 12.78
sys 1.31

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/467005/ft1_filtered_4FGL_J2121.0+1901_daily_bin651.fits', '/scratch/kocevski/467005/ft2_4FGL_J2121.0+1901_daily_bin651.fits', expMap='/scratch/kocevski/467005/expmap_408067201_408326401_4FGL_J2121.0+1901_daily_bin651.fits', expCube='/scratch/kocevski/467005/ltcube_408067201_408326401_4FGL_J2121.0+1901_daily_bin651.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/467005/Model_4FGL_J2121.0+1901_daily_bin651.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2121.0+1901'

4FGL J2121.0+1901
   Spectrum: LogParabola
390         norm:  3.670e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
391        alpha:  2.156e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
392         beta:  5.740e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
393           Eb:  8.783e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/467005/ft1_filtered_4FGL_J2121.0+1901_daily_bin651.fits
Spacecraft file(s): /scratch/kocevski/467005/ft2_4FGL_J2121.0+1901_daily_bin651.fits
Exposure map: /scratch/kocevski/467005/expmap_408067201_408326401_4FGL_J2121.0+1901_daily_bin651.fits
Exposure cube: /scratch/kocevski/467005/ltcube_408067201_408326401_4FGL_J2121.0+1901_daily_bin651.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/467005/Model_4FGL_J2121.0+1901_daily_bin651.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 44.4613825944

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 42.4709705798

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10600       1.0000         .10000E-03   10000.    
     2 'norm      '    .51110E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.4825       1.0000         .10000E-03   10000.    
     4 'Prefactor '    89.669       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.6067       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.5816       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.3117       1.0000         .10000E-03   10000.    
     8 'Prefactor '    76.937       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .37690       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.7135       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.0402       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .37020E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    6.3976       1.0000         .10000E-03   10000.    
    14 'norm      '    1.4350       1.0000         .10000E-03   10000.    
    15 'Prefactor '    36.778       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .78952       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.7084       1.0000         .10000E-03   10000.    
    18 'norm      '    7.3408       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .33229       1.0000         .10000E-03   10000.    
    20 'norm      '    .17782E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.2942       1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.4608       1.0000         .10000E-03   10000.    
    23 'norm      '    1.2618       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    25 'Prefactor '    .15066E-07   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   42.45939     FROM MIGRAD    STATUS=CONVERGED    127 CALLS      401 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 13.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    89.238       -.58934E-04** at limit **
   2  norm          .10000E-03    17.346       -.30801E-05** at limit **
   3  norm          .10696E-03    579.04        .76788E-03** at limit **
   4  Prefactor     93.809        123.41        .62334E-03   -.32409E-02
   5  Prefactor     .14394E-02    793.32       -.25708E-02** at limit **
   6  Prefactor     6.5816        1.0029         .0000         .0000    
   7  Prefactor     .10001E-03    225.37        .16554E-04** at limit **
   8  Prefactor     76.266        18.481        .34790E-04    .14311E-01
   9  Prefactor     .10000E-03    178.37       -.15508E-03** at limit **
  10  Prefactor     1.3360        52.100       -.76759E-03    .10642E-02
  11  Prefactor     1.0402        1.2523         .0000         .0000    
  12  Prefactor     .10000E-03    142.66        .29866E-03** at limit **
  13  norm          6.3976        1.0031         .0000         .0000    
  14  norm          .13107E-03    714.47       -.82856E-03** at limit **
  15  Prefactor     36.942        12.520       -.63577E-04   -.41103E-02
  16  Prefactor     .10000E-03    273.93       -.14132E-03** at limit **
  17  Prefactor     4.7084        1.0057         .0000         .0000    
  18  norm          7.3408        1.0023         .0000         .0000    
  19  Prefactor     .14907E-03    847.65        .10731E-02** at limit **
  20  norm          .10000E-03    25.816       -.44470E-04** at limit **
  21  Prefactor     7.2942        1.0024         .0000         .0000    
  22  Prefactor     7.4608        1.0023         .0000         .0000    
  23  norm          1.2618        1.1146         .0000         .0000    
  24  Normalizat    .10000E-01    .41926        .11864E-03** at limit **
  25  Prefactor     .22581E-10    .18819       -.52287E-04** at limit **
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000106959
  Prefactor  = 93.8086
  Prefactor  = 0.00143936
  Prefactor  = 6.58163
  Prefactor  = 0.000100008
  Prefactor  = 76.2659
  Prefactor  = 0.000100002
  Prefactor  = 1.33595
  Prefactor  = 1.04025
  Prefactor  = 0.000100002
  norm       = 6.39757
  norm       = 0.000131068
  Prefactor  = 36.9424
  Prefactor  = 0.000100001
  Prefactor  = 4.70838
  norm       = 7.34078
  Prefactor  = 0.000149066
  norm       = 0.0001
  Prefactor  = 7.29419
  Prefactor  = 7.46083
  norm       = 1.26182
  Normalizat = 0.01
  Prefactor  = 2.25808e-11
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   42.45939     FROM HESSE     STATUS=FAILED        31 CALLS      432 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    89.094        .95398E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    17.215        .10573E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10696E-03    587.59        .47544E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     93.809        146.66        .10608E-02   -1.3768    
   5  Prefactor     .14394E-02    6362.2        .83571E-02   -1.5715    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     516.82        510.20         .0000       -1.5195    
   7  Prefactor     .10001E-03    .23148        .16554E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     76.266        .99568        .34790E-04   -1.3959    
   9  Prefactor     .10000E-03    .28930       -.15508E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.3360        .92765       -.76759E-03   -1.5477    
  11  Prefactor     1.0402        1.2523         .0000       -1.5504    
  12  Prefactor     .10000E-03    .21190        .29866E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.3976        1.0031         .0000       -1.5202    
  14  norm          .13107E-03    .20294       -.82856E-03   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     36.942        1.0023       -.63577E-04   -1.4492    
  16  Prefactor     .10000E-03    .38444       -.14132E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.7084        1.0057         .0000       -1.5274    
  18  norm          7.3408        1.0023         .0000       -1.5166    
  19  Prefactor     .14907E-03    .27908        .10731E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .20571       -.44470E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.2942        1.0024         .0000       -1.5168    
  22  Prefactor     7.4608        1.0023         .0000       -1.5162    
  23  norm          1.2618        1.1146         .0000       -1.5483    
  24  Normalizat    .10000E-01    .25505        .11864E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .22581E-10    .25504       -.52287E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.76578e-10
Minuit parameter uncertainties:
  1  5.43726e-05
  2  1.19514e-05
  3  0.12918
  4  147.234
  5  4.0167
  6  1.00291
  7  8.6088e-05
  8  0.995685
  9  5.09206e-05
  10  0.92766
  11  1.25236
  12  3.61904e-05
  13  1.00309
  14  0.00502202
  15  1.00232
  16  2.95297e-05
  17  1.00575
  18  1.00234
  19  0.00740098
  20  8.18017e-06
  21  1.00237
  22  1.00226
  23  1.11462
  24  1.60297e-06
  25  4.82025e-06
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 42.4593921384

Extracting fit parameters...

4FGL J2121.0+1901
   Spectrum: LogParabola
390         norm:  1.311e-04  5.022e-03  1.000e-04  1.000e+04 ( 1.000e-12)
391        alpha:  2.156e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
392         beta:  5.740e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
393           Eb:  8.783e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
658    Prefactor:  2.258e-11  4.820e-06  0.000e+00  1.000e+01 ( 1.000e+00)
659        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
660        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
657   Normalization:  1.000e-02  1.603e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 320.260 19.032
Photon Flux Upper Limit: 2.76e-05 ph cm-2 s-1
Energy Flux Upper Limit: 1.26e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/467005/likelihoodResults_408067201_408326401_4FGL_J2121.0+1901_daily_bin651.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) = 42.4594018272
delta logL = -9.68881877128e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 42.4593925976
delta logL = -4.59285594445e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10614E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2883       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .32332E-08   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6610E+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=   42.45939     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      247 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .12001E-03    7678.9        .12169E-01** at limit **
   2  alpha         2.8697        3.9199        .17637        .22485E-06
   3  Normalizat    .10000E-01    .10933E-01    .13086E-02** at limit **
   4  Prefactor     .69283E-11    .48156E-02    .86576E-03** at limit **
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000120014
  alpha      = 2.86969
  Normalizat = 0.01
  Prefactor  = 6.92835e-12
 **********
 **   18 **HESSE 
 **********

 FCN=   42.45939     FROM HESSE     STATUS=NOT POSDEF    23 CALLS      270 TOTAL
                     EDM=   .47E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .12001E-03    7008.1        .14794E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.8697        3.3253        .70549E-02    .14842    
   3  Normalizat    .10000E-01    .12245        .26171E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .69283E-11    .54050E-01    .17315E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.73576e-08
Minuit parameter uncertainties:
  1  2.19684
  2  24680.5
  3  2.34444e-07
  4  1.22502e-06
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/467005': 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) = 42.4593921618
delta logL = -2.34616521766e-08

Extracting fit parameters...

4FGL J2121.0+1901
   Spectrum: LogParabola
390         norm:  1.200e-04  2.197e+00  1.000e-04  1.000e+04 ( 1.000e-12)
391        alpha:  2.870e+00  2.468e+04  0.000e+00  5.000e+00 ( 1.000e+00)
392         beta:  5.740e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
393           Eb:  8.783e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
658    Prefactor:  6.928e-12  1.225e-06  0.000e+00  1.000e+01 ( 1.000e+00)
659        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
660        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
657   Normalization:  1.000e-02  2.344e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 320.260 19.032

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/467005/cmap_HighResolution_408067201_408326401_4FGL_J2121.0+1901_daily_bin651.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.26e-02', job_status='DONE', photon_flux_upper_limit='2.76e-05', time_completed='2021-09-26 12:19:43.817625', job_id='467005', GAL2='0.00', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632683983.82', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.00', dlogl='-2.35e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='651' AND source_name='4FGL J2121.0+1901' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 12:19:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 467005: <4FGL_J2121.0+1901_daily_bin651> in cluster <slac> Done

Job <4FGL_J2121.0+1901_daily_bin651> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 26 12:10:50 2021
Job was executed on host(s) <bullet0210>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 12:11:58 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 26 12:11:58 2021
Terminated at Sun Sep 26 12:19:45 2021
Results reported at Sun Sep 26 12:19:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2121.0+1901_daily_bin651 320.26 19.0324 408067201 408326401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2121.0+1901 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   328.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             414.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   466 sec.
    Turnaround time :                            535 sec.

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

