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


Performing analysis on: 4FGL_J2121.0+1901_daily_bin694
RA = 320.26, Dec = 19.0324
tmin = 419212801, tmax = 419472001
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='467075', job_status='RUN', time_executed='2021-09-26 12:14:19.431536', time_epoch_executed='1632683659.43' WHERE source_name='4FGL J2121.0+1901' and cadence='daily' and bin_id='694'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/467075

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/467075/ft1_4FGL_J2121.0+1901_daily_bin694.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/467075/ft2_4FGL_J2121.0+1901_daily_bin694.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/467075/ft1_4FGL_J2121.0+1901_daily_bin694.fits outfile=/scratch/kocevski/467075/ft1_filteredMKT_4FGL_J2121.0+1901_daily_bin694.fits ra=320.26 dec=19.0324 rad=12.0 tmin=419212801.0 tmax=419472001.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 5.47
user 5.16
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/467075/ft2_4FGL_J2121.0+1901_daily_bin694.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/467075/ft1_filteredMKT_4FGL_J2121.0+1901_daily_bin694.fits evtable="EVENTS" outfile="/scratch/kocevski/467075/ft1_filtered_4FGL_J2121.0+1901_daily_bin694.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/467075/ft1_filtered_4FGL_J2121.0+1901_daily_bin694.fits" evtable="EVENTS" scfile=/scratch/kocevski/467075/ft2_4FGL_J2121.0+1901_daily_bin694.fits sctable="SC_DATA" outfile=/scratch/kocevski/467075/ltcube_419212801_419472001_4FGL_J2121.0+1901_daily_bin694.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/467075/ft2_4FGL_J2121.0+1901_daily_bin694.fits
.....................!
real 14.67
user 14.24
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/467075/ft1_filtered_4FGL_J2121.0+1901_daily_bin694.fits evtable="EVENTS" scfile=/scratch/kocevski/467075/ft2_4FGL_J2121.0+1901_daily_bin694.fits sctable="SC_DATA" expcube=/scratch/kocevski/467075/ltcube_419212801_419472001_4FGL_J2121.0+1901_daily_bin694.fits outfile=/scratch/kocevski/467075/expmap_419212801_419472001_4FGL_J2121.0+1901_daily_bin694.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/467075/ltcube_419212801_419472001_4FGL_J2121.0+1901_daily_bin694.fits
.....................!
real 191.09
user 186.71
sys 3.94

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/467075/ft1_filtered_4FGL_J2121.0+1901_daily_bin694.fits scfile=/scratch/kocevski/467075/ft2_4FGL_J2121.0+1901_daily_bin694.fits outfile=/scratch/kocevski/467075/cmap_419212801_419472001_4FGL_J2121.0+1901_daily_bin694.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/467075/ft1_filtered_4FGL_J2121.0+1901_daily_bin694.fits scfile=/scratch/kocevski/467075/ft2_4FGL_J2121.0+1901_daily_bin694.fits outfile=/scratch/kocevski/467075/cmap_HighResolution_419212801_419472001_4FGL_J2121.0+1901_daily_bin694.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.6652       1.0000         .10000E-03   10000.    
     2 'norm      '    6.1151       1.0000         .10000E-03   10000.    
     3 'norm      '    45.121       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .19461E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .62051E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .47772E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10484E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10760E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    13.083       1.0000         .10000E-03   10000.    
    14 'norm      '    2.3718       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10248E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10417E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    8.0378       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11064E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    18.275       1.0000         .10000E-03   10000.    
    22 'Prefactor '    98.364       1.0000         .10000E-03   10000.    
    23 'norm      '    1.7757       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1393       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .90029       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.

 FCN=   5865.090     FROM MIGRAD    STATUS=CONVERGED    603 CALLS     2903 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6667        6.7670        .34841E-05    .46627E-03
   2  norm          6.1125        12.277        .11244E-06   -.34818E-04
   3  norm          45.234        53.820        .25389E-05    .20358E-04
   4  Prefactor     .10000E-03    20.348        .39565E-06** at limit **
   5  Prefactor     .10000E-03    34.956       -.20973E-05** at limit **
   6  Prefactor     .10000E-03    905.41        .15600E-04** at limit **
   7  Prefactor     .10142E-03    29.583        .52731E-05** at limit **
   8  Prefactor     .10000E-03    18.727       -.19346E-06** at limit **
   9  Prefactor     .10000E-03    11.889       -.25679E-07** at limit **
  10  Prefactor     .10000E-03    22.083       -.83692E-06** at limit **
  11  Prefactor     .10000E-03    12.191       -.57705E-06** at limit **
  12  Prefactor     .10000E-03    33.382        .20000E-05** at limit **
  13  norm          13.090        8.9267        .25847E-06    .30358E-04
  14  norm          2.3723        8.7574        .74350E-07   -.34404E-04
  15  Prefactor     .10000E-03    7.2216       -.78117E-07** at limit **
  16  Prefactor     .10000E-03    24.052       -.18221E-07** at limit **
  17  Prefactor     .10000E-03    91.138        .10797E-06** at limit **
  18  norm          8.0393        4.7198        .41823E-07   -.24510E-04
  19  Prefactor     .10000E-03    77.453        .51857E-06** at limit **
  20  norm          .10000E-03    4.4630       -.98440E-07** at limit **
  21  Prefactor     18.275        29.185        .34487E-06    .17901E-05
  22  Prefactor     98.451        99.096       -.55603E-05   -.47078E-04
  23  norm          1.7753        1.4175        .40295E-07    .59840E-04
  24  Normalizat    1.1393        .32555        .63210E-06   -.17116E-03
  25  Prefactor     .90035        .10816       -.13036E-06   -.22552E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.66674
  norm       = 6.11253
  norm       = 45.2339
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000101417
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.0903
  norm       = 2.37227
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.03927
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 18.2752
  Prefactor  = 98.4507
  norm       = 1.77527
  Normalizat = 1.13926
  Prefactor  = 0.900349
 **********
 **   18 **HESSE 
 **********

 FCN=   5865.090     FROM HESSE     STATUS=OK           425 CALLS     3328 TOTAL
                     EDM=   .90E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6667        6.8751        .12483E-02   -1.5381    
   2  norm          6.1125        12.263        .16235E-03   -1.5213    
   3  norm          45.234        53.853        .29843E-03   -1.4362    
   4  Prefactor     .10000E-03    20.442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    35.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    914.48        .18889E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10142E-03    155.34        .64194E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    18.775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    22.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.639        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    33.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          13.090        8.9031        .11074E-03   -1.4984    
  14  norm          2.3723        8.7294        .26604E-03   -1.5400    
  15  Prefactor     .10000E-03    7.2704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    24.480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    91.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          8.0393        4.7217        .12124E-03   -1.5141    
  19  Prefactor     .10000E-03    77.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    4.5825        .31579E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     18.275        29.178        .93690E-04   -1.4853    
  22  Prefactor     98.451        99.305        .20266E-03   -1.3720    
  23  norm          1.7753        1.4209        .79171E-04   -1.5441    
  24  Normalizat    1.1393        .37952        .42546E-03   -.88501    
  25  Prefactor     .90035        .13016        .16210E-03   -.96129    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.98713e-09
Minuit parameter uncertainties:
  1  6.87709
  2  12.2679
  3  53.9105
  4  9.18132e-05
  5  0.000139025
  6  0.000537703
  7  0.0297452
  8  2.35951e-05
  9  5.9588e-06
  10  3.4706e-05
  11  9.03648e-05
  12  5.05752e-05
  13  8.90404
  14  8.73403
  15  1.87602e-05
  16  6.44595e-05
  17  1.88782e-05
  18  4.72194
  19  2.64012e-05
  20  1.04572e-05
  21  29.2008
  22  99.4727
  23  1.4209
  24  0.380433
  25  0.130206
Done.

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

Extracting fit parameters...

4FGL J2121.0+1901
   Spectrum: LogParabola
390         norm:  2.372e+00  8.734e+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

GAL_V02
   Spectrum: PowerLaw
658    Prefactor:  9.003e-01  1.302e-01  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.139e+00  3.804e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/467075/likelihoodResults_419212801_419472001_4FGL_J2121.0+1901_daily_bin694.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) = 5864.94847182
delta logL = 0.141037019382

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5864.94421837
delta logL = 0.145290470088

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.7117       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8080       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1080       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90459       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.

 FCN=   5864.944     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      214 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7160        167.44        .61836E-02    .46273E-03
   2  alpha         2.8068        3.4484        .41553        .24020E-04
   3  Normalizat    1.1079        .83486E-01    .97195E-01   -.51484E-04
   4  Prefactor     .90460        .29270E-01    .45064E-01   -.64797E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.716
  alpha      = 2.80685
  Normalizat = 1.10791
  Prefactor  = 0.9046
 **********
 **   18 **HESSE 
 **********

 FCN=   5864.944     FROM HESSE     STATUS=OK            31 CALLS      245 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.7160        8.1291        .21072E-03   -1.5378    
   2  alpha         2.8068        1.4721        .20909E-01    .12305    
   3  Normalizat    1.1079        .37828        .43064E-03   -.89498    
   4  Prefactor     .90460        .12963        .16174E-03   -.95981    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.53597e-11
Minuit parameter uncertainties:
  1  8.13241
  2  1.57591
  3  0.379214
  4  0.129673
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/467075': 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) = 5864.94421795
delta logL = 0.145290890288

Extracting fit parameters...

4FGL J2121.0+1901
   Spectrum: LogParabola
390         norm:  2.716e+00  8.132e+00  1.000e-04  1.000e+04 ( 1.000e-12)
391        alpha:  2.807e+00  1.576e+00  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.046e-01  1.297e-01  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.108e+00  3.792e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.08
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/467075/cmap_HighResolution_419212801_419472001_4FGL_J2121.0+1901_daily_bin694.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.39e-05', job_status='DONE', photon_flux_upper_limit='1.83e-07', time_completed='2021-09-26 12:27:29.493314', job_id='467075', GAL2='0.90', fit_tolerance='1e-08', EG2='1.11', EG='1.14', time_epoch_completed='1632684449.49', return_code2='0', ts='0.08', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='1.45e-01', ts2='0.38', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='694' AND source_name='4FGL J2121.0+1901' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 12:27:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0291>
Subject: Job 467075: <4FGL_J2121.0+1901_daily_bin694> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2121.0+1901_daily_bin694 320.26 19.0324 419212801 419472001 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 :                                   786.44 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             323.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   916 sec.
    Turnaround time :                            995 sec.

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

