/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 203 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_bin731
RA = 320.26, Dec = 19.0324
tmin = 428803201, tmax = 429062401
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='467133', job_status='RUN', time_executed='2021-09-26 12:16:02.614855', time_epoch_executed='1632683762.61' WHERE source_name='4FGL J2121.0+1901' and cadence='daily' and bin_id='731'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/467133

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/467133/ft1_4FGL_J2121.0+1901_daily_bin731.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/467133/ft2_4FGL_J2121.0+1901_daily_bin731.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/467133/ft1_4FGL_J2121.0+1901_daily_bin731.fits outfile=/scratch/kocevski/467133/ft1_filteredMKT_4FGL_J2121.0+1901_daily_bin731.fits ra=320.26 dec=19.0324 rad=12.0 tmin=428803201.0 tmax=429062401.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.58
user 6.25
sys 0.28

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/467133/ft1_filtered_4FGL_J2121.0+1901_daily_bin731.fits evtable="EVENTS" scfile=/scratch/kocevski/467133/ft2_4FGL_J2121.0+1901_daily_bin731.fits sctable="SC_DATA" expcube=/scratch/kocevski/467133/ltcube_428803201_429062401_4FGL_J2121.0+1901_daily_bin731.fits outfile=/scratch/kocevski/467133/expmap_428803201_429062401_4FGL_J2121.0+1901_daily_bin731.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/467133/ltcube_428803201_429062401_4FGL_J2121.0+1901_daily_bin731.fits
.....................!
real 192.08
user 185.99
sys 4.80

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/467133/ft1_filtered_4FGL_J2121.0+1901_daily_bin731.fits scfile=/scratch/kocevski/467133/ft2_4FGL_J2121.0+1901_daily_bin731.fits outfile=/scratch/kocevski/467133/cmap_428803201_429062401_4FGL_J2121.0+1901_daily_bin731.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.54
user 0.38
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8436       1.0000         .10000E-03   10000.    
     2 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    163.82       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.557       1.0000         .10000E-03   10000.    
     6 'Prefactor '    93.063       1.0000         .10000E-03   10000.    
     7 'Prefactor '    28.877       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11160E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.2759       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.4494       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10544E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    21.244       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .14549E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.5938       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10364E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    96.847       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3786       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .74928       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=   4558.560     FROM MIGRAD    STATUS=CONVERGED    582 CALLS     2946 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8441        8.9251       -.63659E-06    .33953E-04
   2  norm          .10000E-03    3.3401        .65770E-07** at limit **
   3  norm          163.84        111.93       -.12869E-05    .12610E-04
   4  Prefactor     .10000E-03    18.515        .25163E-06** at limit **
   5  Prefactor     17.562        23.161        .69009E-06   -.20014E-04
   6  Prefactor     92.995        123.37        .92301E-05   -.36289E-04
   7  Prefactor     28.878        27.511        .36832E-06   -.76969E-05
   8  Prefactor     .10000E-03    53.945        .32179E-05** at limit **
   9  Prefactor     1.1341        277.09       -.35708E-05    .38990E-05
  10  Prefactor     .10000E-03    23.586        .42589E-06** at limit **
  11  Prefactor     2.4554        10.306       -.13932E-07   -.19290E-04
  12  Prefactor     .10000E-03    52.087        .23075E-05** at limit **
  13  norm          .10000E-03    4.6058       -.18218E-07** at limit **
  14  norm          .10000E-03    3.0961        .46319E-07** at limit **
  15  Prefactor     .10000E-03    6.1372        .50610E-07** at limit **
  16  Prefactor     21.227        22.881       -.16741E-05    .67192E-04
  17  Prefactor     .10001E-03    255.77       -.26067E-05** at limit **
  18  norm          1.6131        8.1886        .90722E-05    .29314E-04
  19  Prefactor     .10000E-03    56.177       -.58013E-06** at limit **
  20  norm          .10000E-03    2.0790        .50905E-07** at limit **
  21  Prefactor     96.562        100.79        .25432E-04    .17885E-04
  22  Prefactor     .10000E-03    36.892       -.22978E-05** at limit **
  23  norm          .15559E-01    1.4532       -.17694E-05   -.16923E-03
  24  Normalizat    1.3785        .39117        .42223E-05    .22410E-03
  25  Prefactor     .74921        .12150       -.29515E-05    .51717E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.84408
  norm       = 0.0001
  norm       = 163.844
  Prefactor  = 0.0001
  Prefactor  = 17.5621
  Prefactor  = 92.9953
  Prefactor  = 28.8783
  Prefactor  = 0.0001
  Prefactor  = 1.13405
  Prefactor  = 0.0001
  Prefactor  = 2.45544
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.2274
  Prefactor  = 0.000100007
  norm       = 1.61314
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 96.5625
  Prefactor  = 0.0001
  norm       = 0.0155592
  Normalizat = 1.37849
  Prefactor  = 0.749213
 **********
 **   18 **HESSE 
 **********

 FCN=   4558.560     FROM HESSE     STATUS=OK           431 CALLS     3377 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8441        8.9027        .30717E-03   -1.5436    
   2  norm          .10000E-03    3.3419        .12051E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          163.84        112.06        .15755E-03   -1.3141    
   4  Prefactor     .10000E-03    18.543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     17.562        23.164        .95586E-04   -1.4870    
   6  Prefactor     92.995        123.10        .20830E-03   -1.3776    
   7  Prefactor     28.878        27.613        .74555E-04   -1.4633    
   8  Prefactor     .10000E-03    53.803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.1341        281.32        .39337E-03   -1.5495    
  10  Prefactor     .10000E-03    23.593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.4554        10.219        .26138E-03   -1.5395    
  12  Prefactor     .10000E-03    52.313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    4.6105        .14132E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.1017        .11602E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.1487        .16326E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     21.227        22.944        .86901E-04   -1.4786    
  17  Prefactor     .10001E-03    256.21        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.6131        8.3877        .15875E-02   -1.5454    
  19  Prefactor     .10000E-03    56.177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.0833        .95070E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     96.562        103.56        .20422E-03   -1.3739    
  22  Prefactor     .10000E-03    36.907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .15559E-01    4.6295        .27133E-01   -1.5683    
  24  Normalizat    1.3785        .47369        .40568E-03   -.81253    
  25  Prefactor     .74921        .14700        .16987E-03   -1.0163    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.60365e-10
Minuit parameter uncertainties:
  1  8.10538
  2  2.41112e-06
  3  112.202
  4  3.73355e-05
  5  23.1759
  6  123.442
  7  27.6257
  8  0.00025363
  9  35.8933
  10  3.15889e-05
  11  10.0213
  12  4.94755e-05
  13  1.72253e-06
  14  8.29124e-06
  15  1.31176e-06
  16  22.9538
  17  0.00277432
  18  7.3582
  19  2.94797e-05
  20  1.04618e-07
  21  103.759
  22  4.42994e-05
  23  0.53509
  24  0.475205
  25  0.147074
Done.

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

Extracting fit parameters...

4FGL J2121.0+1901
   Spectrum: LogParabola
390         norm:  1.000e-04  8.291e-06  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:  7.492e-01  1.471e-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.378e+00  4.752e-01  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.26e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.77e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/467133/likelihoodResults_428803201_429062401_4FGL_J2121.0+1901_daily_bin731.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) = 4558.56177011
delta logL = -0.00152740726026

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4558.56024268
delta logL = 1.53850123752e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1621       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3785       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74922       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=   4558.543     FROM MIGRAD    STATUS=CONVERGED    198 CALLS      341 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .22216E-01    .12002        .82940E-02   -.35085E-02
   2  alpha         5.0000        3.8115        .50000    ** at limit **
   3  Normalizat    1.3571        .44988        .40566E-03    .63701E-04
   4  Prefactor     .75369        .14377        .16988E-03    .16799E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0222158
  alpha      = 5
  Normalizat = 1.35714
  Prefactor  = 0.753692
 **********
 **   18 **HESSE 
 **********

 FCN=   4558.543     FROM HESSE     STATUS=OK            33 CALLS      374 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .22216E-01    .17495        .42229E-03   -1.5738    
   2  alpha         5.0000        4.2118        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.3571        .46116        .16226E-04   -.81876    
   4  Prefactor     .75369        .14541        .33975E-04   -1.0146    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.57461e-08
Minuit parameter uncertainties:
  1  0.124405
  2  5.36902e-05
  3  0.462579
  4  0.145485
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/467133': 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) = 4558.54292904
delta logL = 0.0173136610365

Extracting fit parameters...

4FGL J2121.0+1901
   Spectrum: LogParabola
390         norm:  2.222e-02  1.244e-01  1.000e-04  1.000e+04 ( 1.000e-12)
391        alpha:  5.000e+00  5.369e-05  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:  7.537e-01  1.455e-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.357e+00  4.626e-01  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/467133/cmap_HighResolution_428803201_429062401_4FGL_J2121.0+1901_daily_bin731.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.77e-05', job_status='DONE', photon_flux_upper_limit='1.26e-07', time_completed='2021-09-26 12:27:32.892899', job_id='467133', GAL2='0.75', fit_tolerance='1e-08', EG2='1.36', EG='1.38', time_epoch_completed='1632684452.89', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='1.73e-02', ts2='0.04', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='731' AND source_name='4FGL J2121.0+1901' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 12:27:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 467133: <4FGL_J2121.0+1901_daily_bin731> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2121.0+1901_daily_bin731 320.26 19.0324 428803201 429062401 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 :                                   686.19 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             271.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   904 sec.
    Turnaround time :                            991 sec.

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

