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


Performing analysis on: 4FGL_J2121.0+1901_daily_bin959
RA = 320.26, Dec = 19.0324
tmin = 487900801, tmax = 488160001
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='468447', job_status='RUN', time_executed='2021-09-26 12:19:04.475677', time_epoch_executed='1632683944.48' WHERE source_name='4FGL J2121.0+1901' and cadence='daily' and bin_id='959'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/468447

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/468447/ft1_4FGL_J2121.0+1901_daily_bin959.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/468447/ft2_4FGL_J2121.0+1901_daily_bin959.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/468447/ft1_4FGL_J2121.0+1901_daily_bin959.fits outfile=/scratch/kocevski/468447/ft1_filteredMKT_4FGL_J2121.0+1901_daily_bin959.fits ra=320.26 dec=19.0324 rad=12.0 tmin=487900801.0 tmax=488160001.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 6.15
user 5.79
sys 0.26

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/468447/ft1_filtered_4FGL_J2121.0+1901_daily_bin959.fits evtable="EVENTS" scfile=/scratch/kocevski/468447/ft2_4FGL_J2121.0+1901_daily_bin959.fits sctable="SC_DATA" expcube=/scratch/kocevski/468447/ltcube_487900801_488160001_4FGL_J2121.0+1901_daily_bin959.fits outfile=/scratch/kocevski/468447/expmap_487900801_488160001_4FGL_J2121.0+1901_daily_bin959.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/468447/ltcube_487900801_488160001_4FGL_J2121.0+1901_daily_bin959.fits
.....................!
real 190.87
user 185.92
sys 4.32

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/468447/ft1_filtered_4FGL_J2121.0+1901_daily_bin959.fits scfile=/scratch/kocevski/468447/ft2_4FGL_J2121.0+1901_daily_bin959.fits outfile=/scratch/kocevski/468447/cmap_487900801_488160001_4FGL_J2121.0+1901_daily_bin959.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.57
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/468447/ft1_filtered_4FGL_J2121.0+1901_daily_bin959.fits scfile=/scratch/kocevski/468447/ft2_4FGL_J2121.0+1901_daily_bin959.fits outfile=/scratch/kocevski/468447/cmap_HighResolution_487900801_488160001_4FGL_J2121.0+1901_daily_bin959.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.57
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0382       1.0000         .10000E-03   10000.    
     2 'norm      '    14.494       1.0000         .10000E-03   10000.    
     3 'norm      '    19.357       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.639       1.0000         .10000E-03   10000.    
     6 'Prefactor '    67.157       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.0626       1.0000         .10000E-03   10000.    
    14 'norm      '    13.437       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .98323       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .23843E-02   1.0000         .10000E-03   10000.    
    18 'norm      '    12.555       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11787E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10352E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .77836       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .88299       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=   5505.107     FROM MIGRAD    STATUS=CONVERGED    590 CALLS     2862 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0392        13.591        .49156E-05   -.57458E-04
   2  norm          14.498        12.867        .18664E-06   -.32841E-04
   3  norm          19.364        58.425        .89939E-06    .15553E-04
   4  Prefactor     .10000E-03    6.4959        .38149E-07** at limit **
   5  Prefactor     18.646        26.434        .18331E-06   -.38802E-04
   6  Prefactor     67.203        112.85        .29878E-05    .11327E-03
   7  Prefactor     .10000E-03    12.061        .95639E-07** at limit **
   8  Prefactor     .10000E-03    7.5752       -.36822E-08** at limit **
   9  Prefactor     .10000E-03    9.9240        .15367E-06** at limit **
  10  Prefactor     .10000E-03    21.734        .11426E-06** at limit **
  11  Prefactor     .10000E-03    6.1103        .41923E-06** at limit **
  12  Prefactor     .10000E-03    19.161       -.15645E-06** at limit **
  13  norm          5.0676        6.5039        .25320E-06    .85051E-04
  14  norm          13.437        7.4951       -.37996E-09   -.10568E-03
  15  Prefactor     .98663        10.815        .43609E-05   -.82294E-04
  16  Prefactor     .10000E-03    10.817       -.75137E-06** at limit **
  17  Prefactor     .10000E-03    362.79       -.15210E-05** at limit **
  18  norm          12.536        6.5491       -.17604E-06   -.43221E-03
  19  Prefactor     .10000E-03    53.875        .27382E-06** at limit **
  20  norm          .10000E-03    2.5421       -.67574E-07** at limit **
  21  Prefactor     .10000E-03    63.161       -.15844E-05** at limit **
  22  Prefactor     .10000E-03    75.558        .79062E-06** at limit **
  23  norm          .10000E-03    .45834       -.27011E-07** at limit **
  24  Normalizat    .77818        .33784        .47619E-06   -.86755E-04
  25  Prefactor     .88295        .11292       -.86658E-06   -.10649E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.03919
  norm       = 14.4983
  norm       = 19.3639
  Prefactor  = 0.0001
  Prefactor  = 18.646
  Prefactor  = 67.2034
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.06765
  norm       = 13.4373
  Prefactor  = 0.986627
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 12.5364
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100002
  norm       = 0.0001
  Normalizat = 0.778183
  Prefactor  = 0.882953
 **********
 **   18 **HESSE 
 **********

 FCN=   5505.107     FROM HESSE     STATUS=OK           419 CALLS     3281 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0392        13.709        .49303E-03   -1.5504    
   2  norm          14.498        12.858        .10521E-03   -1.4946    
   3  norm          19.364        58.501        .91035E-04   -1.4828    
   4  Prefactor     .10000E-03    6.5016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     18.646        26.419        .92770E-04   -1.4844    
   6  Prefactor     67.203        113.17        .48977E-04   -1.4067    
   7  Prefactor     .10000E-03    12.118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.5781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.9416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    21.748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.1910        .17876E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    19.180        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.0676        6.4906        .17870E-03   -1.5258    
  14  norm          13.437        7.4927        .10927E-03   -1.4975    
  15  Prefactor     .98663        11.068        .46224E-03   -1.5509    
  16  Prefactor     .10000E-03    10.894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    363.29        .20065E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          12.536        6.5527        .11305E-03   -1.5000    
  19  Prefactor     .10000E-03    53.891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.5862        .11550E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    63.332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    75.735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .45993        .49040E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .77818        .37619        .46646E-03   -1.0088    
  25  Prefactor     .88295        .12733        .15146E-03   -.96739    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.07349e-10
Minuit parameter uncertainties:
  1  7.55057
  2  12.8604
  3  58.6749
  4  1.20022e-06
  5  26.4351
  6  113.53
  7  4.66357e-05
  8  1.75624e-06
  9  5.13138e-05
  10  4.09919e-05
  11  2.57763e-06
  12  4.57447e-05
  13  6.49148
  14  7.49317
  15  6.61017
  16  9.98421e-05
  17  0.0018853
  18  6.55312
  19  0.000222888
  20  1.50441e-06
  21  0.000736716
  22  0.000732679
  23  2.74251e-07
  24  0.377456
  25  0.127371
Done.

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

Extracting fit parameters...

4FGL J2121.0+1901
   Spectrum: LogParabola
390         norm:  1.344e+01  7.493e+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:  8.830e-01  1.274e-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:  7.782e-01  3.775e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.21
Ra Dec: 320.260 19.032
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 1.10e-07 +/- 6.12e-08
Energy Flux (Fixed Index): 5.02e-05 +/- 2.80e-05

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) = 5505.06331688
delta logL = 0.0433653596756

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5505.05878076
delta logL = 0.0479014723896

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.112       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3569       1.0000          .0000       5.0000    
     3 'Normalizat'    .74624       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88909       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=   5505.059     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      264 TOTAL
                     EDM=   .79E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.112        7.4307        .11062E-03    .40184E-03
   2  alpha         2.3569        .63813        .13319E-01    .22526E-04
   3  Normalizat    .74623        .37342        .47528E-03    .92331E-04
   4  Prefactor     .88908        .12574        .15095E-03    .22338E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 13.1117
  alpha      = 2.35689
  Normalizat = 0.746231
  Prefactor  = 0.889079
 **********
 **   18 **HESSE 
 **********

 FCN=   5505.059     FROM HESSE     STATUS=OK            25 CALLS      289 TOTAL
                     EDM=   .79E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.112        7.3033        .44248E-05   -1.4984    
   2  alpha         2.3569        .62610        .53275E-03   -.57276E-01
   3  Normalizat    .74623        .37297        .19011E-04   -1.0210    
   4  Prefactor     .88908        .12569        .30190E-04   -.96524    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.88551e-11
Minuit parameter uncertainties:
  1  7.30383
  2  0.632858
  3  0.374252
  4  0.12573
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/468447': 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) = 5505.05878074
delta logL = 0.0479014917601

Extracting fit parameters...

4FGL J2121.0+1901
   Spectrum: LogParabola
390         norm:  1.311e+01  7.304e+00  1.000e-04  1.000e+04 ( 1.000e-12)
391        alpha:  2.357e+00  6.329e-01  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:  8.891e-01  1.257e-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:  7.462e-01  3.743e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.33
Ra Dec: 320.260 19.032
Photon Index (Free Index): 2.36 +/- 0.63
Photon Flux (Free Index): 1.40e-07 +/- 1.22e-07
Energy Flux (Free Index): 4.84e-05 +/- 2.57e-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/468447/cmap_HighResolution_487900801_488160001_4FGL_J2121.0+1901_daily_bin959.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.10e-07', energy_flux2='4.84e-05', photon_flux_error='6.12e-08', dlogl='4.79e-02', energy_flux='5.02e-05', photon_flux2='1.40e-07', job_status='DONE', time_completed='2021-09-26 12:30:32.903275', photon_index_error2='0.63', photon_index2='2.36', ts='11.21', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='2.57e-05', EG='0.78', time_epoch_completed='1632684632.9', return_code='0', job_id='468447', GAL2='0.89', EG2='0.75', return_code2='0', energy_flux_error='2.80e-05', photon_flux_error2='1.22e-07', ts2='11.33', photon_index='2.16' WHERE bin_id='959' AND source_name='4FGL J2121.0+1901' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 12:30:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 468447: <4FGL_J2121.0+1901_daily_bin959> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2121.0+1901_daily_bin959 320.26 19.0324 487900801 488160001 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 :                                   684.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             319.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   843 sec.
    Turnaround time :                            894 sec.

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

