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


Performing analysis on: 4FGL_J0921.6+6216_daily_bin1229
RA = 140.419, Dec = 62.2708
tmin = 557884801, tmax = 558144001
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='148064', job_status='RUN', time_executed='2021-08-31 07:50:02.023679', time_epoch_executed='1630421402.02' WHERE source_name='4FGL J0921.6+6216' and cadence='daily' and bin_id='1229'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/148064

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/148064/ft1_4FGL_J0921.6+6216_daily_bin1229.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/148064/ft2_4FGL_J0921.6+6216_daily_bin1229.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/148064/ft1_4FGL_J0921.6+6216_daily_bin1229.fits outfile=/scratch/kocevski/148064/ft1_filteredMKT_4FGL_J0921.6+6216_daily_bin1229.fits ra=140.419 dec=62.2708 rad=12.0 tmin=557884801.0 tmax=558144001.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 4.09
user 3.78
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/148064/ft2_4FGL_J0921.6+6216_daily_bin1229.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/148064/ft2_4FGL_J0921.6+6216_daily_bin1229.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/148064/ft1_filteredMKT_4FGL_J0921.6+6216_daily_bin1229.fits evtable="EVENTS" outfile="/scratch/kocevski/148064/ft1_filtered_4FGL_J0921.6+6216_daily_bin1229.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/148064/ft1_filtered_4FGL_J0921.6+6216_daily_bin1229.fits" evtable="EVENTS" scfile=/scratch/kocevski/148064/ft2_4FGL_J0921.6+6216_daily_bin1229.fits sctable="SC_DATA" outfile=/scratch/kocevski/148064/ltcube_557884801_558144001_4FGL_J0921.6+6216_daily_bin1229.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/148064/ft2_4FGL_J0921.6+6216_daily_bin1229.fits
.....................!
real 13.22
user 12.77
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/148064/ft1_filtered_4FGL_J0921.6+6216_daily_bin1229.fits evtable="EVENTS" scfile=/scratch/kocevski/148064/ft2_4FGL_J0921.6+6216_daily_bin1229.fits sctable="SC_DATA" expcube=/scratch/kocevski/148064/ltcube_557884801_558144001_4FGL_J0921.6+6216_daily_bin1229.fits outfile=/scratch/kocevski/148064/expmap_557884801_558144001_4FGL_J0921.6+6216_daily_bin1229.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/148064/ltcube_557884801_558144001_4FGL_J0921.6+6216_daily_bin1229.fits
.....................!
real 192.44
user 186.77
sys 4.05

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
Added 239 point sources and 0 extended sources

Setting source of interest to:
4FGL J0921.6+6216 @ 140.419 62.2708

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/148064/ft1_filtered_4FGL_J0921.6+6216_daily_bin1229.fits scfile=/scratch/kocevski/148064/ft2_4FGL_J0921.6+6216_daily_bin1229.fits outfile=/scratch/kocevski/148064/cmap_557884801_558144001_4FGL_J0921.6+6216_daily_bin1229.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=140.419 yref=62.2708 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.66
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/148064/ft1_filtered_4FGL_J0921.6+6216_daily_bin1229.fits scfile=/scratch/kocevski/148064/ft2_4FGL_J0921.6+6216_daily_bin1229.fits outfile=/scratch/kocevski/148064/cmap_HighResolution_557884801_558144001_4FGL_J0921.6+6216_daily_bin1229.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=140.419 yref=62.2708 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.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/148064/ft1_filtered_4FGL_J0921.6+6216_daily_bin1229.fits evtable="EVENTS" scfile=/scratch/kocevski/148064/ft2_4FGL_J0921.6+6216_daily_bin1229.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/148064/Model_4FGL_J0921.6+6216_daily_bin1229.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 EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/148064/ft1_filtered_4FGL_J0921.6+6216_daily_bin1229.fits.!
real 14.60
user 12.14
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/148064/ft1_filtered_4FGL_J0921.6+6216_daily_bin1229.fits', '/scratch/kocevski/148064/ft2_4FGL_J0921.6+6216_daily_bin1229.fits', expMap='/scratch/kocevski/148064/expmap_557884801_558144001_4FGL_J0921.6+6216_daily_bin1229.fits', expCube='/scratch/kocevski/148064/ltcube_557884801_558144001_4FGL_J0921.6+6216_daily_bin1229.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/148064/Model_4FGL_J0921.6+6216_daily_bin1229.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0921.6+6216'

4FGL J0921.6+6216
   Spectrum: LogParabola
366         norm:  1.245e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
367        alpha:  2.223e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
368         beta:  8.311e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
369           Eb:  5.899e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/148064/ft1_filtered_4FGL_J0921.6+6216_daily_bin1229.fits
Spacecraft file(s): /scratch/kocevski/148064/ft2_4FGL_J0921.6+6216_daily_bin1229.fits
Exposure map: /scratch/kocevski/148064/expmap_557884801_558144001_4FGL_J0921.6+6216_daily_bin1229.fits
Exposure cube: /scratch/kocevski/148064/ltcube_557884801_558144001_4FGL_J0921.6+6216_daily_bin1229.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/148064/Model_4FGL_J0921.6+6216_daily_bin1229.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) = 9.49088883217

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20593E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.2708       1.0000         .10000E-03   10000.    
     3 'norm      '    .10762E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .18556E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.6864       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .14065E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .14014E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.5685       1.0000         .10000E-03   10000.    
    11 'norm      '    .10102E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10018E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    808.24       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.0640       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .39986E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    1.4802       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.6707       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.6547       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.0566       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.8272       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.7324       1.0000         .10000E-03   10000.    
    22 'norm      '    1.0310       1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.8882       1.0000         .10000E-03   10000.    
    24 'norm      '    1.7109       1.0000         .10000E-03   10000.    
    25 'norm      '    2.2563       1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.3067       1.0000         .10000E-03   10000.    
    27 'norm      '    3.5817       1.0000         .10000E-03   10000.    
    28 'Prefactor '    9.2537       1.0000         .10000E-03   10000.    
    29 'norm      '    4.6995       1.0000         .10000E-03   10000.    
    30 'norm      '    1.7230       1.0000         .10000E-03   10000.    
    31 'Prefactor '    7.4071       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    33 'Prefactor '    .31394E-08   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   9.060631     FROM MIGRAD    STATUS=FAILED       938 CALLS     4484 TOTAL
                     EDM=   .39E-02  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 36.8%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12393E-02    9938.4         .0000    ** at limit **
   2  Prefactor     158.79        7971.3         .0000       -.21114E-03
   3  norm          .11228E-03    9933.4         .0000    ** at limit **
   4  Prefactor     .74446E-02    9919.3         .0000       -.12436E-01
   5  Prefactor     9974.8        5026.9         .0000       -.19691E-02
   6  Prefactor     .71727E-03    9934.2         .0000    ** at limit **
   7  Prefactor     .64185E-03    9933.5         .0000    ** at limit **
   8  norm          .14695E-03    9933.1         .0000    ** at limit **
   9  Prefactor     .34715E-03    9935.3         .0000    ** at limit **
  10  Prefactor     9987.9        6059.0         .0000        .35364E-03
  11  norm          .85431E-02    9917.8         .0000       -.13481E-01
  12  Prefactor     .98717E-03    9950.5         .0000    ** at limit **
  13  Prefactor     479.37        9155.6         .0000        .23124E-01
  14  Prefactor     3130.5        8126.6         .0000       -.20639E-02
  15  Prefactor     .81039E-01    9880.0         .0000       -.40677E-02
  16  norm          9998.4        8778.0         .0000        .63441E-03
  17  Prefactor     9999.9        9529.6         .0000        .30199E-03
  18  Prefactor     3.5124        9903.7         .0000       -.41408E-05
  19  Prefactor     43.405        7642.1         .0000       -.92646E-04
  20  Prefactor     424.74        9786.3         .0000       -.43022E-03
  21  Prefactor     2.2674        9936.5         .0000       -.11406E-05
  22  norm          2.9218        9889.7         .0000       -.53591E-05
  23  Prefactor     13.501        9861.2         .0000       -.43810E-05
  24  norm          1281.4        8914.0         .0000       -.10850E-02
  25  norm          9999.7        9935.9         .0000        .10078E-02
  26  Prefactor     8.3993        9917.0         .0000       -.11241E-05
  27  norm          52.623        9972.4         .0000       -.67583E-04
  28  Prefactor     22.202        9413.7         .0000       -.12238E-04
  29  norm          1407.4        8186.8         .0000       -.90473E-03
  30  norm          17.449        6793.3         .0000       -.32497E-04
  31  Prefactor     14.476        9765.3         .0000       -.74314E-05
  32  Normalizat    .10013E-01    9.8648         .0000        .81369E-02
  33  Prefactor     .50536E-04    9.8151         .0000        .18838E-01
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9.060625     FROM SIMPLEX   STATUS=PROGRESS    1617 CALLS     6101 TOTAL
                     EDM=   .23E-04  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 36.8%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .24372E-03    9938.4        .54807E-02   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     158.79        7971.3        .25536E-04   -1.3181    
   3  norm          .10800E-03    9933.4        .16686E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .47693E-02    9919.3        .16727E-02   -1.5722    
   5  Prefactor     9974.8        5026.9        .63276E-05    1.4704    
   6  Prefactor     .28102E-02    9934.2        .10941E-02   -1.5718    
   7  Prefactor     .17955E-03    9933.5        .75703E-03   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10001E-03    9933.1        .10825E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .11759E-03    9935.3        .24973E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9987.9        6059.0        .15629E-04    1.6404    
  11  norm          .44647E-02    9917.8        .13957E-02   -1.5721    
  12  Prefactor     .38437E-02    9950.5        .58862E-02   -1.5696    
  13  Prefactor     479.37        9155.6        .86393E-05   -1.1293    
  14  Prefactor     3130.5        8126.6        .40898E-05   -.38321    
  15  Prefactor     .76529E-01    9880.0        .95927E-03   -1.5763    
  16  norm          9998.4        8778.0        .31926E-03    1.5964    
  17  Prefactor     9999.9        9529.6        .21671E-02    1.5770    
  18  Prefactor     3.5314        9903.7        .31815E-03   -1.5332    
  19  Prefactor     43.420        7642.1        .67617E-04   -1.4389    
  20  Prefactor     424.75        9786.3        .26304E-04   -1.1556    
  21  Prefactor     2.2892        9936.5        .41464E-03   -1.5405    
  22  norm          2.9439        9889.7        .37798E-03   -1.5365    
  23  Prefactor     13.521        9861.2        .16929E-03   -1.4972    
  24  norm          1281.5        8914.0        .23181E-04   -.83860    
  25  norm          9999.7        9935.9        .15572E-02    1.5814    
  26  Prefactor     8.4226        9917.0        .28402E-03   -1.5127    
  27  norm          52.647        9972.4        .12010E-03   -1.4256    
  28  Prefactor     22.211        9413.7        .72898E-04   -1.4765    
  29  norm          1407.4        8186.8        .62786E-05   -.80168    
  30  norm          17.454        6793.3        .44845E-04   -1.4872    
  31  Prefactor     14.476        9765.3        .23869E-04   -1.4947    
  32  Normalizat    .10013E-01    9.8648        .33569E-03   -1.5686    
  33  Prefactor     .50343E-04    9.8151        .35911E-04   -1.5663    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9.044294     FROM MIGRAD    STATUS=CONVERGED   1783 CALLS     7884 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    601.16        .17591E-03** at limit **
   2  Prefactor    10000.0        2296.5        .27253E-02** at limit **
   3  norm          .10000E-03    50.517        .44332E-04** at limit **
   4  Prefactor     .10000E-03    299.78        .11451E-03** at limit **
   5  Prefactor    10000.0        2257.3        .32425E-02** at limit **
   6  Prefactor     .10000E-03    122.61        .70195E-04** at limit **
   7  Prefactor     .10000E-03    80.591        .56371E-04** at limit **
   8  norm          .10000E-03    32.225        .35264E-04** at limit **
   9  Prefactor     .10000E-03    243.11        .10169E-03** at limit **
  10  Prefactor    10000.0        2287.5        .14577E-02** at limit **
  11  norm          .10000E-03    296.93        .11388E-03** at limit **
  12  Prefactor     .10000E-03    988.72        .25673E-03** at limit **
  13  Prefactor     459.11        738.53        .14675E-03    .15981E-04
  14  Prefactor    10000.0        2293.6        .47358E-01** at limit **
  15  Prefactor     .10000E-03    1388.3        .36479E-03** at limit **
  16  norm         10000.0        2246.7        .35280E-02** at limit **
  17  Prefactor    10000.0        2186.7        .18621E-02** at limit **
  18  Prefactor    10000.0        2298.1        .32811E-02   -.19804E-06
  19  Prefactor    10000.0        2296.8        .47858E-02** at limit **
  20  Prefactor    10000.0        2296.0        .24187E-01** at limit **
  21  Prefactor    10000.0        2298.2        .31892E-02** at limit **
  22  norm          9999.9        2297.9        .49972E-02   -.88386E-06
  23  Prefactor    10000.0        2298.2        .13444E-02** at limit **
  24  norm         10000.0        2294.9        .32138E-01** at limit **
  25  norm         10000.0        2104.7        .27350E-02** at limit **
  26  Prefactor    10000.0        2298.2        .14838E-02   -.28962E-07
  27  norm         10000.0        2297.3        .21353E-02** at limit **
  28  Prefactor     1415.0        2932.8        .13175E-02   -.91423E-04
  29  norm         10000.0        2295.5        .18563E-01** at limit **
  30  norm         10000.0        2297.5        .31998E-02** at limit **
  31  Prefactor     9999.9        2298.1        .14737E-02   -.44579E-06
  32  Normalizat    .10000E-01    .54325        .16457E-03** at limit **
  33  Prefactor     .33390E-11    .47433        .15075E-03** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Prefactor  = 10000
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 10000
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10000
  norm       = 0.000100001
  Prefactor  = 0.000100003
  Prefactor  = 459.112
  Prefactor  = 10000
  Prefactor  = 0.000100003
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 9999.99
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 9999.92
  Prefactor  = 10000
  norm       = 10000
  norm       = 10000
  Prefactor  = 9999.99
  norm       = 10000
  Prefactor  = 1415.01
  norm       = 10000
  norm       = 10000
  Prefactor  = 9999.95
  Normalizat = 0.01
  Prefactor  = 3.339e-12
 **********
 **   18 **HESSE 
 **********

 FCN=   9.044294     FROM HESSE     STATUS=OK           673 CALLS     8557 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    601.16        .35183E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor    10000.0        2296.5        .54506E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    50.517        .88664E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    299.78        .22901E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor    10000.0        2257.3        .64851E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    122.61        .14039E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    80.591        .11274E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    32.225        .70527E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    243.11        .20338E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor    10000.0        2287.6        .29154E-01    1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    296.93        .22776E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    988.72        .51346E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     459.11        738.53        .29351E-04   -1.1389    
  14  Prefactor    10000.0        2293.6        .94715E-02    1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1388.3        .72957E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm         10000.0        2246.7        .70561E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor    10000.0        2186.7        .37242E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor    10000.0        2298.1        .65623E-03    1.5690    
  19  Prefactor    10000.0        2296.8        .95717E-03    1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor    10000.0        2296.0        .48374E-02    1.5712    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor    10000.0        2298.2        .63783E-03    1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          9999.9        2297.9        .99945E-03    1.5652    
  23  Prefactor    10000.0        2298.2        .26889E-03    1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm         10000.0        2294.8        .64275E-02    1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm         10000.0        2104.7        .54701E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor    10000.0        2298.2        .29677E-03    7.8525    
  27  norm         10000.0        2297.3        .42706E-01    1.5714    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     1415.0        2932.8        .26350E-03   -.79949    
  29  norm         10000.0        2295.5        .37125E-02    1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm         10000.0        2297.5        .63995E-03    1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     9999.9        2298.1        .29473E-03    1.5663    
  32  Normalizat    .10000E-01    .54298        .32913E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .33390E-11    .47433        .30149E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.43754e-09
Minuit parameter uncertainties:
  1  0.00256645
  2  0.207116
  3  0.000145772
  4  0.00111867
  5  0.103006
  6  0.000875736
  7  0.000383124
  8  2.59735e-05
  9  0.000387643
  10  0.409503
  11  0.000851049
  12  0.00356733
  13  754.789
  14  0.57564
  15  0.00438913
  16  0.00824006
  17  0.0252493
  18  8.88238
  19  1.00622
  20  2.14217
  21  4.61585
  22  27.9366
  23  4.02612
  24  1.08662
  25  0.0169825
  26  7.39736
  27  2.92586
  28  3485.37
  29  0.331431
  30  1.52972
  31  22.605
  32  2.00066e-06
  33  2.5374e-06
Done.

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

Extracting fit parameters...

4FGL J0921.6+6216
   Spectrum: LogParabola
366         norm:  1.000e+04  8.240e-03  1.000e-04  1.000e+04 ( 1.000e-11)
367        alpha:  2.223e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
368         beta:  8.311e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
369           Eb:  5.899e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
762    Prefactor:  3.339e-12  2.537e-06  0.000e+00  1.000e+01 ( 1.000e+00)
763        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
764        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
761   Normalization:  1.000e-02  2.001e-06  1.000e-02  1.000e+01 ( 1.000e+00)

calc_int error: parameter max 10000.0 is not large enough
delta logLike = 4.78590465036e-08

TS (Fixed Index): 0.10
Ra Dec: 140.419 62.271
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -3.78e+02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/148064/likelihoodResults_557884801_558144001_4FGL_J0921.6+6216_daily_bin1229.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) = 8.9923109648
delta logL = 0.0519826479469

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8.99229949294
delta logL = 0.0519941198086

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'alpha     '    5.0000       1.0000          .0000       5.0000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8.992299     FROM MIGRAD    STATUS=CONVERGED     14 CALLS       58 TOTAL
                     EDM=   .59E-19    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    alpha       5.0000        4.5996        .26779    ** at limit **
                               ERR DEF=  .500    
Final values: 
  alpha      = 5
 **********
 **   18 **HESSE 
 **********

 FCN=   8.992299     FROM HESSE     STATUS=OK             5 CALLS       63 TOTAL
                     EDM=   .58E-19    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    alpha       5.0000        4.6290        .59649E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.76362e-20
Minuit parameter uncertainties:
  1  9.33521e-09
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/148064': 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) = 8.99229949294
delta logL = 0.0519941198086

Extracting fit parameters...

4FGL J0921.6+6216
   Spectrum: LogParabola
366         norm:  1.000e+04  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11) fixed
367        alpha:  5.000e+00  9.335e-09  0.000e+00  5.000e+00 ( 1.000e+00)
368         beta:  8.311e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
369           Eb:  5.899e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
762    Prefactor:  1.125e-06  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
763        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
764        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
761   Normalization:  1.000e-02  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


TS (Free Index): 0.10
Ra Dec: 140.419 62.271

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/148064/cmap_HighResolution_557884801_558144001_4FGL_J0921.6+6216_daily_bin1229.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-3.78e+02', job_status='DONE', photon_flux_upper_limit='-1.00e+00', time_completed='2021-08-31 07:56:10.802394', job_id='148064', GAL2='0.00', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630421770.8', return_code2='0', ts='0.10', comment='SUCCESS', return_code='0', GAL='0.00', dlogl='5.20e-02', ts2='0.21', photon_index_error='0.00', photon_index='2.22' WHERE bin_id='1229' AND source_name='4FGL J0921.6+6216' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 07:56:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0131>
Subject: Job 148064: <4FGL_J0921.6+6216_daily_bin1229> in cluster <slac> Done

Job <4FGL_J0921.6+6216_daily_bin1229> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Aug 31 07:45:58 2021
Job was executed on host(s) <bullet0131>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 07:45:59 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 31 07:45:59 2021
Terminated at Tue Aug 31 07:56:11 2021
Results reported at Tue Aug 31 07:56:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0921.6+6216_daily_bin1229 140.419 62.2708 557884801 558144001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0921.6+6216 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   355.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             313.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   612 sec.
    Turnaround time :                            613 sec.

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

