/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 149 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 = 7473
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2121.0+1901_daily_bin377
RA = 320.26, Dec = 19.0324
tmin = 337046401, tmax = 337305601
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='465584', job_status='RUN', time_executed='2021-09-26 12:10:18.648697', time_epoch_executed='1632683418.65' WHERE source_name='4FGL J2121.0+1901' and cadence='daily' and bin_id='377'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/465584

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/465584/ft1_4FGL_J2121.0+1901_daily_bin377.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/465584/ft2_4FGL_J2121.0+1901_daily_bin377.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/465584/ft1_4FGL_J2121.0+1901_daily_bin377.fits outfile=/scratch/kocevski/465584/ft1_filteredMKT_4FGL_J2121.0+1901_daily_bin377.fits ra=320.26 dec=19.0324 rad=12.0 tmin=337046401.0 tmax=337305601.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 10.99
user 10.57
sys 0.32

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/465584/ft1_filtered_4FGL_J2121.0+1901_daily_bin377.fits evtable="EVENTS" scfile=/scratch/kocevski/465584/ft2_4FGL_J2121.0+1901_daily_bin377.fits sctable="SC_DATA" expcube=/scratch/kocevski/465584/ltcube_337046401_337305601_4FGL_J2121.0+1901_daily_bin377.fits outfile=/scratch/kocevski/465584/expmap_337046401_337305601_4FGL_J2121.0+1901_daily_bin377.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/465584/ltcube_337046401_337305601_4FGL_J2121.0+1901_daily_bin377.fits
.....................!
real 191.27
user 185.94
sys 4.72

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/465584/ft1_filtered_4FGL_J2121.0+1901_daily_bin377.fits scfile=/scratch/kocevski/465584/ft2_4FGL_J2121.0+1901_daily_bin377.fits outfile=/scratch/kocevski/465584/cmap_337046401_337305601_4FGL_J2121.0+1901_daily_bin377.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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/465584/ft1_filtered_4FGL_J2121.0+1901_daily_bin377.fits scfile=/scratch/kocevski/465584/ft2_4FGL_J2121.0+1901_daily_bin377.fits outfile=/scratch/kocevski/465584/cmap_HighResolution_337046401_337305601_4FGL_J2121.0+1901_daily_bin377.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.58
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10079E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10217E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    75.569       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.7684       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10304E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    102.50       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .34838E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    37.654       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    28.153       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.5697       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10610E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.7400       1.0000         .10000E-03   10000.    
    14 'norm      '    4.9124       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.0743       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .23855E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    7.7578       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    113.40       1.0000         .10000E-03   10000.    
    23 'norm      '    .21089E-02   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .49187       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2018       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=   4767.132     FROM MIGRAD    STATUS=CONVERGED    577 CALLS     2904 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.7828        .49887E-07** at limit **
   2  norm          .10000E-03    28.404        .20840E-04** at limit **
   3  norm          75.582        177.64        .12096E-04   -.31395E-04
   4  Prefactor     1.7825        246.00       -.21597E-05   -.11485E-03
   5  Prefactor     .10000E-03    26.586        .21700E-05** at limit **
   6  Prefactor     102.57        170.16        .63930E-04   -.46917E-04
   7  Prefactor     .10002E-03    143.44        .50661E-04** at limit **
   8  Prefactor     37.645        47.434       -.72494E-05   -.41125E-04
   9  Prefactor     .10000E-03    25.450       -.16688E-04** at limit **
  10  Prefactor     28.114        72.804       -.55127E-04   -.78436E-04
  11  Prefactor     7.5658        9.9985       -.37070E-05   -.37927E-03
  12  Prefactor     .10000E-03    16.681        .56559E-06** at limit **
  13  norm          5.7382        6.9180        .58898E-06   -.13218E-03
  14  norm          4.9101        7.2795        .12617E-05   -.21404E-03
  15  Prefactor     .10000E-03    3.9510        .11258E-06** at limit **
  16  Prefactor     9.0661        14.233       -.11450E-05   -.23775E-03
  17  Prefactor     .10000E-03    218.20       -.23996E-03** at limit **
  18  norm          .10000E-03    2.2279       -.16670E-07** at limit **
  19  Prefactor     .10000E-03    52.767       -.25445E-04** at limit **
  20  norm          7.7563        4.8224        .52083E-06   -.10949E-03
  21  Prefactor     .10000E-03    129.60        .70926E-04** at limit **
  22  Prefactor     113.35        109.09       -.38257E-04   -.11086E-03
  23  norm          .15737E-02    .96272        .23484E-06** at limit **
  24  Normalizat    .49241        .51929        .21199E-04   -.20046E-03
  25  Prefactor     1.2017        .16814       -.32831E-05   -.80865E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.0001
  norm       = 75.5821
  Prefactor  = 1.78253
  Prefactor  = 0.0001
  Prefactor  = 102.57
  Prefactor  = 0.000100015
  Prefactor  = 37.6453
  Prefactor  = 0.0001
  Prefactor  = 28.1143
  Prefactor  = 7.56576
  Prefactor  = 0.0001
  norm       = 5.73821
  norm       = 4.91007
  Prefactor  = 0.0001
  Prefactor  = 9.06609
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 7.75631
  Prefactor  = 0.000100004
  Prefactor  = 113.354
  norm       = 0.00157365
  Normalizat = 0.492414
  Prefactor  = 1.20167
 **********
 **   18 **HESSE 
 **********

 FCN=   4767.132     FROM HESSE     STATUS=OK           429 CALLS     3333 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.7828        .14748E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    28.783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          75.582        167.06        .46190E-04   -1.3967    
   4  Prefactor     1.7825        215.83        .31495E-03   -1.5441    
   5  Prefactor     .10000E-03    26.661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     102.57        169.12        .19857E-03   -1.3679    
   7  Prefactor     .10002E-03    148.65        .36783E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     37.645        46.892        .65315E-04   -1.4480    
   9  Prefactor     .10000E-03    25.441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     28.114        72.307        .75506E-04   -1.4647    
  11  Prefactor     7.5658        9.9177        .14576E-03   -1.5158    
  12  Prefactor     .10000E-03    16.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.7382        6.8951        .16765E-03   -1.5229    
  14  norm          4.9101        7.2346        .18147E-03   -1.5265    
  15  Prefactor     .10000E-03    3.9597        .13399E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.0661        14.066        .13305E-03   -1.5106    
  17  Prefactor     .10000E-03    217.71        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.2950        .20107E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    52.766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          7.7563        4.8042        .11525E-03   -1.5151    
  21  Prefactor     .10000E-03    130.63        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     113.35        108.18        .18889E-03   -1.3575    
  23  norm          .15737E-02    3.0374        .23057E-01   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .49241        .46884        .65796E-03   -1.1277    
  25  Prefactor     1.2017        .16107        .15598E-03   -.86280    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.90939e-09
Minuit parameter uncertainties:
  1  9.89068e-07
  2  0.000222672
  3  168.115
  4  39.3737
  5  1.7723e-05
  6  169.923
  7  0.0030303
  8  46.9382
  9  8.76701e-05
  10  72.5335
  11  9.91987
  12  5.66928e-06
  13  6.89608
  14  7.23591
  15  5.31236e-06
  16  14.0714
  17  0.000318637
  18  3.9834e-06
  19  2.77272e-05
  20  4.80443
  21  0.00146121
  22  108.374
  23  0.133813
  24  0.472668
  25  0.16114
Done.

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

Extracting fit parameters...

4FGL J2121.0+1901
   Spectrum: LogParabola
390         norm:  4.910e+00  7.236e+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:  1.202e+00  1.611e-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:  4.924e-01  4.727e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/465584/likelihoodResults_337046401_337305601_4FGL_J2121.0+1901_daily_bin377.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) = 4766.67961325
delta logL = 0.452551448265

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4766.64730724
delta logL = 0.48485745891

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.4980       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.1838       1.0000          .0000       5.0000    
     3 'Normalizat'    .52044       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1965       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=   4766.647     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      216 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4964        4.1306        .54044E-02    .20903E-03
   2  alpha         1.1833        .48400        .40967       -.61751E-04
   3  Normalizat    .52048        .43551        .14445        .10076E-04
   4  Prefactor     1.1965        .15760        .34714E-01   -.14459E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.49644
  alpha      = 1.18334
  Normalizat = 0.520482
  Prefactor  = 1.1965
 **********
 **   18 **HESSE 
 **********

 FCN=   4766.647     FROM HESSE     STATUS=OK            29 CALLS      245 TOTAL
                     EDM=   .85E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.4964        5.2006        .14772E-03   -1.5334    
   2  alpha         1.1833        .71239        .15378E-01   -.55467    
   3  Normalizat    .52048        .42789        .64068E-03   -1.1148    
   4  Prefactor     1.1965        .15549        .15620E-03   -.86439    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.49875e-11
Minuit parameter uncertainties:
  1  5.20128
  2  0.726453
  3  0.430636
  4  0.155546
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/465584': 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) = 4766.64730704
delta logL = 0.484857656395

Extracting fit parameters...

4FGL J2121.0+1901
   Spectrum: LogParabola
390         norm:  3.496e+00  5.201e+00  1.000e-04  1.000e+04 ( 1.000e-12)
391        alpha:  1.183e+00  7.265e-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:  1.197e+00  1.555e-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:  5.205e-01  4.306e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.80
Ra Dec: 320.260 19.032
Photon Index (Free Index): 1.18 +/- 0.73
Photon Flux (Free Index): 1.48e-08 +/- 2.04e-08
Energy Flux (Free Index): 7.63e-05 +/- 1.35e-04

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/465584/cmap_HighResolution_337046401_337305601_4FGL_J2121.0+1901_daily_bin377.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.20e-05', comment='SUCCESS', energy_flux2='7.63e-05', dlogl='4.85e-01', photon_flux2='1.48e-08', job_status='DONE', time_completed='2021-09-26 12:22:26.088351', photon_index_error2='0.73', photon_index2='1.18', ts='0.84', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', photon_flux_upper_limit='2.01e-07', energy_flux_error2='1.35e-04', EG='0.49', time_epoch_completed='1632684146.09', return_code='0', job_id='465584', GAL2='1.20', EG2='0.52', return_code2='0', photon_flux_error2='2.04e-08', ts2='1.80', photon_index='2.16' WHERE bin_id='377' AND source_name='4FGL J2121.0+1901' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 12:22:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 465584: <4FGL_J2121.0+1901_daily_bin377> in cluster <slac> Done

Job <4FGL_J2121.0+1901_daily_bin377> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep 26 12:05:57 2021
Job was executed on host(s) <bullet0273>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 12:07:39 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:07:39 2021
Terminated at Sun Sep 26 12:22:26 2021
Results reported at Sun Sep 26 12:22:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2121.0+1901_daily_bin377 320.26 19.0324 337046401 337305601 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 :                                   723.39 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             296.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   887 sec.
    Turnaround time :                            989 sec.

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

