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


Performing analysis on: 4FGL_J2121.0+1901_daily_bin662
RA = 320.26, Dec = 19.0324
tmin = 410918401, tmax = 411177601
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='467022', job_status='RUN', time_executed='2021-09-26 12:15:37.340347', time_epoch_executed='1632683737.34' WHERE source_name='4FGL J2121.0+1901' and cadence='daily' and bin_id='662'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/467022

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/467022/ft1_4FGL_J2121.0+1901_daily_bin662.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/467022/ft2_4FGL_J2121.0+1901_daily_bin662.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/467022/ft1_4FGL_J2121.0+1901_daily_bin662.fits outfile=/scratch/kocevski/467022/ft1_filteredMKT_4FGL_J2121.0+1901_daily_bin662.fits ra=320.26 dec=19.0324 rad=12.0 tmin=410918401.0 tmax=411177601.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.17
user 6.69
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/467022/ft2_4FGL_J2121.0+1901_daily_bin662.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/467022/ft1_filteredMKT_4FGL_J2121.0+1901_daily_bin662.fits evtable="EVENTS" outfile="/scratch/kocevski/467022/ft1_filtered_4FGL_J2121.0+1901_daily_bin662.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.67
user 0.35
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/467022/ft1_filtered_4FGL_J2121.0+1901_daily_bin662.fits" evtable="EVENTS" scfile=/scratch/kocevski/467022/ft2_4FGL_J2121.0+1901_daily_bin662.fits sctable="SC_DATA" outfile=/scratch/kocevski/467022/ltcube_410918401_411177601_4FGL_J2121.0+1901_daily_bin662.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/467022/ft2_4FGL_J2121.0+1901_daily_bin662.fits
.....................!
real 14.63
user 14.23
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/467022/ft1_filtered_4FGL_J2121.0+1901_daily_bin662.fits evtable="EVENTS" scfile=/scratch/kocevski/467022/ft2_4FGL_J2121.0+1901_daily_bin662.fits sctable="SC_DATA" expcube=/scratch/kocevski/467022/ltcube_410918401_411177601_4FGL_J2121.0+1901_daily_bin662.fits outfile=/scratch/kocevski/467022/expmap_410918401_411177601_4FGL_J2121.0+1901_daily_bin662.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/467022/ltcube_410918401_411177601_4FGL_J2121.0+1901_daily_bin662.fits
.....................!
real 192.61
user 186.68
sys 5.11

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/467022/ft1_filtered_4FGL_J2121.0+1901_daily_bin662.fits scfile=/scratch/kocevski/467022/ft2_4FGL_J2121.0+1901_daily_bin662.fits outfile=/scratch/kocevski/467022/cmap_410918401_411177601_4FGL_J2121.0+1901_daily_bin662.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/467022/ft1_filtered_4FGL_J2121.0+1901_daily_bin662.fits scfile=/scratch/kocevski/467022/ft2_4FGL_J2121.0+1901_daily_bin662.fits outfile=/scratch/kocevski/467022/cmap_HighResolution_410918401_411177601_4FGL_J2121.0+1901_daily_bin662.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.60
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/467022/ft1_filtered_4FGL_J2121.0+1901_daily_bin662.fits evtable="EVENTS" scfile=/scratch/kocevski/467022/ft2_4FGL_J2121.0+1901_daily_bin662.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/467022/Model_4FGL_J2121.0+1901_daily_bin662.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/467022/ft1_filtered_4FGL_J2121.0+1901_daily_bin662.fits.....................!
real 74.00
user 72.43
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/467022/ft1_filtered_4FGL_J2121.0+1901_daily_bin662.fits', '/scratch/kocevski/467022/ft2_4FGL_J2121.0+1901_daily_bin662.fits', expMap='/scratch/kocevski/467022/expmap_410918401_411177601_4FGL_J2121.0+1901_daily_bin662.fits', expCube='/scratch/kocevski/467022/ltcube_410918401_411177601_4FGL_J2121.0+1901_daily_bin662.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/467022/Model_4FGL_J2121.0+1901_daily_bin662.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/467022/ft1_filtered_4FGL_J2121.0+1901_daily_bin662.fits
Spacecraft file(s): /scratch/kocevski/467022/ft2_4FGL_J2121.0+1901_daily_bin662.fits
Exposure map: /scratch/kocevski/467022/expmap_410918401_411177601_4FGL_J2121.0+1901_daily_bin662.fits
Exposure cube: /scratch/kocevski/467022/ltcube_410918401_411177601_4FGL_J2121.0+1901_daily_bin662.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/467022/Model_4FGL_J2121.0+1901_daily_bin662.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) = 3882.80744116

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    98.979       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    218.37       1.0000         .10000E-03   10000.    
     7 'Prefactor '    28.349       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .40149       1.0000         .10000E-03   10000.    
     9 'Prefactor '    45.156       1.0000         .10000E-03   10000.    
    10 'Prefactor '    29.736       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.397       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.0256       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    564.79       1.0000         .10000E-03   10000.    
    18 'norm      '    10.780       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12999E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.1651       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    30.809       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .10003E-01   1.0000         .10000E-01   10.000    
    25 'Prefactor '    .99820       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=   3882.677     FROM MIGRAD    STATUS=CONVERGED    134 CALLS     2956 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.3632       -.12337E-06** at limit **
   2  norm          .10002E-03    28.627        .25822E-05** at limit **
   3  norm          98.966        2.8080       -.25050E-07   -.29398E-03
   4  Prefactor     .10007E-03    72.875        .71795E-05** at limit **
   5  Prefactor     .10200E-03    36.445       -.76837E-05** at limit **
   6  Prefactor     218.41        9.2607        .88584E-07   -.49474E-02
   7  Prefactor     28.329        3.5062       -.28221E-07   -.17613E-02
   8  Prefactor     .67256        1274.2        .53253E-05    .15031E-02
   9  Prefactor     44.964        43.210       -.10713E-05    .18606E-01
  10  Prefactor     29.766        5.7489        .14573E-07    .30191E-02
  11  Prefactor     14.397        3.9867        .14306E-06   -.43976E-02
  12  Prefactor     .10000E-03    24.691       -.70558E-06** at limit **
  13  norm          5.0229        8.2242        .24632E-06   -.60131E-02
  14  norm          .10000E-03    3.1124        .17968E-08** at limit **
  15  Prefactor     .10000E-03    3.3774       -.53827E-08** at limit **
  16  Prefactor     .10000E-03    9.0849        .59696E-07** at limit **
  17  Prefactor     564.80        2.4302        .14046E-07   -.22181E-02
  18  norm          10.781        6.5910       -.10388E-06   -.31675E-03
  19  Prefactor     .10105E-03    150.84       -.21087E-04** at limit **
  20  norm          2.1653        5.6044       -.10999E-06   -.98591E-04
  21  Prefactor     .10198E-03    37.876        .41493E-05** at limit **
  22  Prefactor     30.814        1.4046        .25966E-07   -.19362E-03
  23  norm          .10000E-03    .85362        .27344E-07** at limit **
  24  Normalizat    .10000E-01    .38668        .84212E-06** at limit **
  25  Prefactor     .99822        .71481E-01    .56811E-06    .22438E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.000100018
  norm       = 98.9658
  Prefactor  = 0.000100074
  Prefactor  = 0.000102001
  Prefactor  = 218.412
  Prefactor  = 28.3289
  Prefactor  = 0.672558
  Prefactor  = 44.9641
  Prefactor  = 29.7663
  Prefactor  = 14.397
  Prefactor  = 0.000100001
  norm       = 5.02286
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 564.801
  norm       = 10.7809
  Prefactor  = 0.000101046
  norm       = 2.16534
  Prefactor  = 0.000101978
  Prefactor  = 30.8138
  norm       = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.998216
 **********
 **   18 **HESSE 
 **********

 FCN=   3882.677     FROM HESSE     STATUS=OK           479 CALLS     3435 TOTAL
                     EDM=   .32E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.3560        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10002E-03    27.975        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          98.966        103.07        .10102E-02   -1.3715    
   4  Prefactor     .10007E-03    72.551        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10200E-03    37.207        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     218.41        190.28        .68423E-03   -1.2741    
   7  Prefactor     28.329        37.415        .18811E-02   -1.4643    
   8  Prefactor     .67256        90.967        .14020       -1.5544    
   9  Prefactor     44.964        62.460        .14916E-02   -1.4366    
  10  Prefactor     29.766        50.172        .18368E-02   -1.4616    
  11  Prefactor     14.397        13.587        .26390E-02   -1.4949    
  12  Prefactor     .10000E-03    24.678        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.0229        10.317        .44844E-02   -1.5260    
  14  norm          .10000E-03    3.1049        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.3763        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.0536        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     564.80        373.11        .43319E-03   -1.0909    
  18  norm          10.781        6.7754        .30507E-02   -1.5051    
  19  Prefactor     .10105E-03    151.08        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.1653        5.6668        .69976E-02   -1.5414    
  21  Prefactor     .10198E-03    38.804        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     30.814        98.499        .18046E-02   -1.4597    
  23  norm          .10000E-03    .84483        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .10000E-01    .22476        .32186       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .99822        .95394E-01    .31264E-01   -.92789    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.20087e-06
Minuit parameter uncertainties:
  1  5.35095e-06
  2  0.00142919
  3  103.258
  4  0.00464023
  5  0.0172697
  6  190.82
  7  37.4455
  8  15.6668
  9  62.5509
  10  50.2431
  11  13.5897
  12  0.000305204
  13  10.3202
  14  6.52348e-08
  15  2.07486e-07
  16  3.91543e-07
  17  374.752
  18  6.77584
  19  0.0252096
  20  5.66823
  21  0.0175334
  22  99.0251
  23  5.23144e-07
  24  2.58267e-07
  25  0.0954105
Done.

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

Extracting fit parameters...

4FGL J2121.0+1901
   Spectrum: LogParabola
390         norm:  1.000e-04  6.523e-08  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:  9.982e-01  9.541e-02  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.583e-07  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/467022/likelihoodResults_410918401_411177601_4FGL_J2121.0+1901_daily_bin662.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) = 3882.67819458
delta logL = -0.00153965945401

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3882.67666082
delta logL = -5.89978162679e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10103E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1422       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99799       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=   3882.677     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      249 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    103.17        .10804E-01** at limit **
   2  alpha         1.6193        2.9864        .50000       -.20513E-06
   3  Normalizat    .10000E-01    .22958E-01    .13347E-01** at limit **
   4  Prefactor     .99822        .16527E-01    .13817E-03    .68497E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 1.6193
  Normalizat = 0.01
  Prefactor  = 0.998216
 **********
 **   18 **HESSE 
 **********

 FCN=   3882.677     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      278 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    648.33        .11727E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6193        3.9959        .50000       -.36001    
   3  Normalizat    .10000E-01    .21236        .26694E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .99822        .50318E-01    .55269E-05   -.92789    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.40929e-10
Minuit parameter uncertainties:
  1  0.00129002
  2  2040.24
  3  5.18018e-07
  4  0.0503199
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/467022': 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) = 3882.67665221
delta logL = 2.7125061024e-06

Extracting fit parameters...

4FGL J2121.0+1901
   Spectrum: LogParabola
390         norm:  1.000e-04  1.290e-03  1.000e-04  1.000e+04 ( 1.000e-12)
391        alpha:  1.619e+00  2.040e+03  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:  9.982e-01  5.032e-02  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  5.180e-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/467022/cmap_HighResolution_410918401_411177601_4FGL_J2121.0+1901_daily_bin662.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.71e-05', job_status='DONE', photon_flux_upper_limit='1.25e-07', time_completed='2021-09-26 12:26:16.138905', job_id='467022', GAL2='1.00', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632684376.14', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='2.71e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='662' AND source_name='4FGL J2121.0+1901' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 12:26:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 467022: <4FGL_J2121.0+1901_daily_bin662> in cluster <slac> Done

Job <4FGL_J2121.0+1901_daily_bin662> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 26 12:10:52 2021
Job was executed on host(s) <bullet0280>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 12:12:04 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:12:04 2021
Terminated at Sun Sep 26 12:26:16 2021
Results reported at Sun Sep 26 12:26:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2121.0+1901_daily_bin662 320.26 19.0324 410918401 411177601 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 :                                   635.19 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             268.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   854 sec.
    Turnaround time :                            924 sec.

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

