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


Performing analysis on: 4FGL_J2121.0+1901_daily_bin735
RA = 320.26, Dec = 19.0324
tmin = 429840001, tmax = 430099201
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='467140', job_status='RUN', time_executed='2021-09-26 12:12:47.314713', time_epoch_executed='1632683567.31' WHERE source_name='4FGL J2121.0+1901' and cadence='daily' and bin_id='735'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/467140

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/467140/ft1_4FGL_J2121.0+1901_daily_bin735.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/467140/ft2_4FGL_J2121.0+1901_daily_bin735.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/467140/ft1_4FGL_J2121.0+1901_daily_bin735.fits outfile=/scratch/kocevski/467140/ft1_filteredMKT_4FGL_J2121.0+1901_daily_bin735.fits ra=320.26 dec=19.0324 rad=12.0 tmin=429840001.0 tmax=430099201.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.07
user 4.57
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/467140/ft1_filtered_4FGL_J2121.0+1901_daily_bin735.fits" evtable="EVENTS" scfile=/scratch/kocevski/467140/ft2_4FGL_J2121.0+1901_daily_bin735.fits sctable="SC_DATA" outfile=/scratch/kocevski/467140/ltcube_429840001_430099201_4FGL_J2121.0+1901_daily_bin735.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/467140/ft2_4FGL_J2121.0+1901_daily_bin735.fits
.....................!
real 12.15
user 11.46
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/467140/ft1_filtered_4FGL_J2121.0+1901_daily_bin735.fits evtable="EVENTS" scfile=/scratch/kocevski/467140/ft2_4FGL_J2121.0+1901_daily_bin735.fits sctable="SC_DATA" expcube=/scratch/kocevski/467140/ltcube_429840001_430099201_4FGL_J2121.0+1901_daily_bin735.fits outfile=/scratch/kocevski/467140/expmap_429840001_430099201_4FGL_J2121.0+1901_daily_bin735.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/467140/ltcube_429840001_430099201_4FGL_J2121.0+1901_daily_bin735.fits
.....................!
real 159.03
user 151.96
sys 4.52

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/467140/ft1_filtered_4FGL_J2121.0+1901_daily_bin735.fits scfile=/scratch/kocevski/467140/ft2_4FGL_J2121.0+1901_daily_bin735.fits outfile=/scratch/kocevski/467140/cmap_429840001_430099201_4FGL_J2121.0+1901_daily_bin735.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.65
user 0.33
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/467140/ft1_filtered_4FGL_J2121.0+1901_daily_bin735.fits scfile=/scratch/kocevski/467140/ft2_4FGL_J2121.0+1901_daily_bin735.fits outfile=/scratch/kocevski/467140/cmap_HighResolution_429840001_430099201_4FGL_J2121.0+1901_daily_bin735.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.59
user 0.33
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.7490       1.0000         .10000E-03   10000.    
     2 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10160E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.727       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .56324E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10738E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .14956E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10745E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    25.985       1.0000         .10000E-03   10000.    
    11 'Prefactor '    10.820       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10267E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.3256       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11543E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    9.2567       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12782E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.4187       1.0000         .10000E-03   10000.    
    21 'Prefactor '    83.764       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .55520       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0430       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=   7838.751     FROM MIGRAD    STATUS=CONVERGED    611 CALLS     2965 TOTAL
                     EDM=   .93E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.7486        4.7758       -.14695E-06   -.10549E-03
   2  norm          .10000E-03    8.0988       -.15207E-07** at limit **
   3  norm          .10000E-03    25.291       -.49811E-08** at limit **
   4  Prefactor     19.716        22.612        .56777E-06   -.60357E-05
   5  Prefactor     .10000E-03    4.0762       -.40106E-07** at limit **
   6  Prefactor     .10003E-03    535.01       -.79262E-05** at limit **
   7  Prefactor     .10000E-03    51.850        .33462E-06** at limit **
   8  Prefactor     .10349E-03    31.636        .51461E-05** at limit **
   9  Prefactor     .10000E-03    19.099        .10714E-07** at limit **
  10  Prefactor     25.969        45.037       -.38895E-06   -.36381E-04
  11  Prefactor     10.820        6.8645       -.28809E-06   -.28203E-03
  12  Prefactor     .10000E-03    43.913       -.32426E-06** at limit **
  13  norm          .10000E-03    4.2832        .56611E-07** at limit **
  14  norm          .10000E-03    2.9946       -.78464E-07** at limit **
  15  Prefactor     1.3239        5.8535        .34411E-05    .34689E-03
  16  Prefactor     .10000E-03    5.9158       -.14193E-06** at limit **
  17  Prefactor     .10000E-03    156.93        .10336E-05** at limit **
  18  norm          9.2546        4.8615        .59790E-07   -.14657E-04
  19  Prefactor     .10000E-03    89.983       -.56755E-06** at limit **
  20  norm          3.4183        4.4696        .67865E-07   -.23843E-04
  21  Prefactor     83.804        59.503        .44183E-06    .27266E-04
  22  Prefactor     .10000E-03    51.916        .40748E-06** at limit **
  23  norm          .10000E-03    .73154        .12343E-06** at limit **
  24  Normalizat    .55540        .35655       -.22522E-05   -.19437E-03
  25  Prefactor     1.0430        .11047       -.39581E-07   -.67275E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.74863
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 19.716
  Prefactor  = 0.0001
  Prefactor  = 0.000100027
  Prefactor  = 0.0001
  Prefactor  = 0.000103488
  Prefactor  = 0.0001
  Prefactor  = 25.9694
  Prefactor  = 10.8201
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.32391
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 9.25465
  Prefactor  = 0.000100001
  norm       = 3.41825
  Prefactor  = 83.8035
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.555395
  Prefactor  = 1.04305
 **********
 **   18 **HESSE 
 **********

 FCN=   7838.751     FROM HESSE     STATUS=OK           427 CALLS     3392 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.7486        4.7810        .18463E-03   -1.5272    
   2  norm          .10000E-03    8.1582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    25.296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     19.716        22.465        .90178E-04   -1.4820    
   5  Prefactor     .10000E-03    4.0781        .17456E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10003E-03    540.19        .19033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    53.363        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10349E-03    23.688        .13310       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    19.145        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     25.969        45.005        .78585E-04   -1.4688    
  11  Prefactor     10.820        6.8129        .12180E-03   -1.5050    
  12  Prefactor     .10000E-03    44.050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    4.3151        .17857E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.0202        .14946E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.3239        6.0193        .38180E-03   -1.5478    
  16  Prefactor     .10000E-03    5.9479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    157.52        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          9.2546        4.8515        .13116E-03   -1.5099    
  19  Prefactor     .10000E-03    90.217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.4183        4.4490        .20561E-03   -1.5338    
  21  Prefactor     83.804        59.387        .43890E-04   -1.3875    
  22  Prefactor     .10000E-03    51.959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .75031        .14787E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .55540        .36738        .60596E-03   -1.0991    
  25  Prefactor     1.0430        .11695        .14785E-03   -.91308    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.91565e-09
Minuit parameter uncertainties:
  1  4.78139
  2  6.96743e-07
  3  1.66593e-06
  4  22.4747
  5  3.06296e-07
  6  0.00766154
  7  0.000130122
  8  0.0181879
  9  5.00196e-05
  10  45.064
  11  6.81339
  12  0.000161335
  13  1.44413e-05
  14  7.34195e-07
  15  5.64663
  16  1.54559e-05
  17  0.00108851
  18  4.85175
  19  0.000503993
  20  4.44939
  21  59.4287
  22  0.000168007
  23  3.26933e-06
  24  0.369002
  25  0.116975
Done.

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

Extracting fit parameters...

4FGL J2121.0+1901
   Spectrum: LogParabola
390         norm:  1.000e-04  7.342e-07  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.043e+00  1.170e-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.554e-01  3.690e-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: 9.30e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.26e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/467140/likelihoodResults_429840001_430099201_4FGL_J2121.0+1901_daily_bin735.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) = 7838.75258174
delta logL = -0.00157754327483

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7838.75100419
delta logL = 2.01725924853e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1531       1.0000          .0000       5.0000    
     3 'Normalizat'    .55540       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0431       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=   7838.751     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      240 TOTAL
                     EDM=   .84E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    560.31        .14950E-02** at limit **
   2  alpha         2.1094        3.0412        .16665        .12347E-07
   3  Normalizat    .55540        .14596        .60597E-03   -.55158E-05
   4  Prefactor     1.0430        .48182E-01    .14785E-03   -.15301E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.10937
  Normalizat = 0.555398
  Prefactor  = 1.04305
 **********
 **   18 **HESSE 
 **********

 FCN=   7838.751     FROM HESSE     STATUS=OK            23 CALLS      263 TOTAL
                     EDM=   .12E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.0286        .29901E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1094        3.9298        .66661E-02   -.15689    
   3  Normalizat    .55540        .34638        .24239E-04   -1.0991    
   4  Prefactor     1.0430        .11468        .59141E-05   -.91308    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22483e-12
Minuit parameter uncertainties:
  1  3.66088e-06
  2  166.009
  3  0.347737
  4  0.114709
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/467140': 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) = 7838.75100416
delta logL = 3.91410139855e-08

Extracting fit parameters...

4FGL J2121.0+1901
   Spectrum: LogParabola
390         norm:  1.000e-04  3.661e-06  1.000e-04  1.000e+04 ( 1.000e-12)
391        alpha:  2.109e+00  1.660e+02  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.043e+00  1.147e-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.554e-01  3.477e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/467140/cmap_HighResolution_429840001_430099201_4FGL_J2121.0+1901_daily_bin735.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.26e-05', job_status='DONE', photon_flux_upper_limit='9.30e-08', time_completed='2021-09-26 12:25:50.644362', job_id='467140', GAL2='1.04', fit_tolerance='1e-08', EG2='0.56', EG='0.56', time_epoch_completed='1632684350.64', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='3.91e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='735' AND source_name='4FGL J2121.0+1901' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 12:25:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0023>
Subject: Job 467140: <4FGL_J2121.0+1901_daily_bin735> in cluster <slac> Done

Job <4FGL_J2121.0+1901_daily_bin735> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 26 12:11:03 2021
Job was executed on host(s) <bullet0023>, 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:25:51 2021
Results reported at Sun Sep 26 12:25:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2121.0+1901_daily_bin735 320.26 19.0324 429840001 430099201 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 :                                   769.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             348.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   801 sec.
    Turnaround time :                            888 sec.

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

