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


Performing analysis on: 4FGL_J0921.6+6216_daily_bin654
RA = 140.419, Dec = 62.2708
tmin = 408844801, tmax = 409104001
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='140658', job_status='RUN', time_executed='2021-08-31 07:30:07.286188', time_epoch_executed='1630420207.29' WHERE source_name='4FGL J0921.6+6216' and cadence='daily' and bin_id='654'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/140658

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/140658/ft1_4FGL_J0921.6+6216_daily_bin654.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/140658/ft2_4FGL_J0921.6+6216_daily_bin654.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/140658/ft1_4FGL_J0921.6+6216_daily_bin654.fits outfile=/scratch/kocevski/140658/ft1_filteredMKT_4FGL_J0921.6+6216_daily_bin654.fits ra=140.419 dec=62.2708 rad=12.0 tmin=408844801.0 tmax=409104001.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.80
user 4.11
sys 0.67

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/140658/ft2_4FGL_J0921.6+6216_daily_bin654.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/140658/ft1_filteredMKT_4FGL_J0921.6+6216_daily_bin654.fits evtable="EVENTS" outfile="/scratch/kocevski/140658/ft1_filtered_4FGL_J0921.6+6216_daily_bin654.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.97
user 0.32
sys 0.60

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/140658/ft1_filtered_4FGL_J0921.6+6216_daily_bin654.fits" evtable="EVENTS" scfile=/scratch/kocevski/140658/ft2_4FGL_J0921.6+6216_daily_bin654.fits sctable="SC_DATA" outfile=/scratch/kocevski/140658/ltcube_408844801_409104001_4FGL_J0921.6+6216_daily_bin654.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/140658/ft2_4FGL_J0921.6+6216_daily_bin654.fits
.....................!
real 12.18
user 11.32
sys 0.80

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/140658/ft1_filtered_4FGL_J0921.6+6216_daily_bin654.fits evtable="EVENTS" scfile=/scratch/kocevski/140658/ft2_4FGL_J0921.6+6216_daily_bin654.fits sctable="SC_DATA" expcube=/scratch/kocevski/140658/ltcube_408844801_409104001_4FGL_J0921.6+6216_daily_bin654.fits outfile=/scratch/kocevski/140658/expmap_408844801_409104001_4FGL_J0921.6+6216_daily_bin654.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/140658/ltcube_408844801_409104001_4FGL_J0921.6+6216_daily_bin654.fits
.....................!
real 193.10
user 185.46
sys 5.63

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/140658/ft1_filtered_4FGL_J0921.6+6216_daily_bin654.fits scfile=/scratch/kocevski/140658/ft2_4FGL_J0921.6+6216_daily_bin654.fits outfile=/scratch/kocevski/140658/cmap_408844801_409104001_4FGL_J0921.6+6216_daily_bin654.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 1.01
user 0.37
sys 0.59

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/140658/ft1_filtered_4FGL_J0921.6+6216_daily_bin654.fits scfile=/scratch/kocevski/140658/ft2_4FGL_J0921.6+6216_daily_bin654.fits outfile=/scratch/kocevski/140658/cmap_HighResolution_408844801_409104001_4FGL_J0921.6+6216_daily_bin654.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 1.04
user 0.37
sys 0.60

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/140658/ft1_filtered_4FGL_J0921.6+6216_daily_bin654.fits evtable="EVENTS" scfile=/scratch/kocevski/140658/ft2_4FGL_J0921.6+6216_daily_bin654.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/140658/Model_4FGL_J0921.6+6216_daily_bin654.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/140658/ft1_filtered_4FGL_J0921.6+6216_daily_bin654.fits........................!
real 23.95
user 18.78
sys 1.83

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/140658/ft1_filtered_4FGL_J0921.6+6216_daily_bin654.fits', '/scratch/kocevski/140658/ft2_4FGL_J0921.6+6216_daily_bin654.fits', expMap='/scratch/kocevski/140658/expmap_408844801_409104001_4FGL_J0921.6+6216_daily_bin654.fits', expCube='/scratch/kocevski/140658/ltcube_408844801_409104001_4FGL_J0921.6+6216_daily_bin654.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/140658/Model_4FGL_J0921.6+6216_daily_bin654.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/140658/ft1_filtered_4FGL_J0921.6+6216_daily_bin654.fits
Spacecraft file(s): /scratch/kocevski/140658/ft2_4FGL_J0921.6+6216_daily_bin654.fits
Exposure map: /scratch/kocevski/140658/expmap_408844801_409104001_4FGL_J0921.6+6216_daily_bin654.fits
Exposure cube: /scratch/kocevski/140658/ltcube_408844801_409104001_4FGL_J0921.6+6216_daily_bin654.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/140658/Model_4FGL_J0921.6+6216_daily_bin654.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) = 757.404700342

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .24061E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    87.698       1.0000         .10000E-03   10000.    
     3 'norm      '    11.264       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    25.807       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.5402       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    64.660       1.0000         .10000E-03   10000.    
    15 'Prefactor '    89.876       1.0000         .10000E-03   10000.    
    16 'norm      '    .14414E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    58.231       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.598       1.0000         .10000E-03   10000.    
    22 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    209.40       1.0000         .10000E-03   10000.    
    24 'norm      '    2.1994       1.0000         .10000E-03   10000.    
    25 'norm      '    3.0187       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    44.991       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    10.075       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .23604E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.1315       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .41585       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 MINIMIZATION HAS CONVERGED.

 FCN=   757.3831     FROM MIGRAD    STATUS=CONVERGED    875 CALLS     4506 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    520.54        .64196E-04** at limit **
   2  Prefactor     87.694        133.96       -.21458E-05   -.41657E-05
   3  norm          11.264        10.910        .35034E-06    .42746E-04
   4  Prefactor     .10000E-03    80.958       -.29172E-04** at limit **
   5  Prefactor     .10000E-03    5.3679       -.39328E-08** at limit **
   6  Prefactor     .10000E-03    16.313        .81627E-07** at limit **
   7  Prefactor     .10000E-03    6.6437        .36727E-07** at limit **
   8  norm          .10000E-03    2.4992       -.85183E-08** at limit **
   9  Prefactor     25.800        26.870        .21713E-05    .12047E-04
  10  Prefactor     .10000E-03    97.560        .60066E-04** at limit **
  11  norm          .10000E-03    13.404       -.17654E-07** at limit **
  12  Prefactor     5.5601        107.17       -.92431E-05   -.23884E-05
  13  Prefactor     .10000E-03    25.167       -.36990E-05** at limit **
  14  Prefactor     64.664        47.768       -.92536E-07    .33686E-04
  15  Prefactor     89.903        84.905        .14045E-04    .38991E-04
  16  norm          .10004E-03    5.0695       -.34995E-07** at limit **
  17  Prefactor     58.236        63.034        .24299E-05    .11897E-04
  18  Prefactor     .10000E-03    33.948       -.14426E-04** at limit **
  19  Prefactor     .10000E-03    30.163        .15926E-04** at limit **
  20  Prefactor     .10000E-03    35.654       -.14279E-04** at limit **
  21  Prefactor     10.601        20.853        .64888E-07    .11112E-03
  22  norm          .10000E-03    25.273        .11096E-05** at limit **
  23  Prefactor     209.38        150.37       -.95388E-05    .32932E-04
  24  norm          2.1995        1.8117        .46047E-07    .10797E-03
  25  norm          3.0191        3.3676       -.12614E-06    .12550E-03
  26  Prefactor     .10000E-03    45.390        .29991E-04** at limit **
  27  norm          44.996        78.335        .39700E-05    .10427E-04
  28  Prefactor     .10000E-03    78.725       -.34500E-04** at limit **
  29  norm          .10000E-03    4.9101        .61282E-08** at limit **
  30  norm          10.076        9.8992        .27263E-06    .71422E-04
  31  Prefactor     .10000E-03    631.00       -.15623E-03** at limit **
  32  Normalizat    1.1312        .56859        .16475E-05    .98490E-04
  33  Prefactor     .41601        .45263       -.19586E-05    .35957E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 87.6941
  norm       = 11.2643
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 25.7997
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.56006
  Prefactor  = 0.0001
  Prefactor  = 64.6644
  Prefactor  = 89.9026
  norm       = 0.000100035
  Prefactor  = 58.2364
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.6014
  norm       = 0.0001
  Prefactor  = 209.38
  norm       = 2.19947
  norm       = 3.01911
  Prefactor  = 0.0001
  norm       = 44.996
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 10.076
  Prefactor  = 0.0001
  Normalizat = 1.13123
  Prefactor  = 0.416014
 **********
 **   18 **HESSE 
 **********

 FCN=   757.3831     FROM HESSE     STATUS=OK           681 CALLS     5187 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    520.55        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     87.694        133.71        .42903E-04   -1.3832    
   3  norm          11.264        10.920        .84776E-04   -1.5037    
   4  Prefactor     .10000E-03    80.987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.4056        .62206E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    16.315        .10861E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.6440        .69303E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.5012        .42501E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     25.800        26.860        .78857E-04   -1.4692    
  10  Prefactor     .10000E-03    97.545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    13.404        .98450E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.5601        107.21        .17069E-03   -1.5236    
  13  Prefactor     .10000E-03    25.169        .13493E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     64.664        45.716        .24954E-03   -1.4098    
  15  Prefactor     89.903        85.051        .21192E-03   -1.3809    
  16  norm          .10004E-03    47.102        .11090E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     58.236        62.825        .52574E-04   -1.4180    
  18  Prefactor     .10000E-03    35.214        .31234E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    30.166        .14773E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    35.702        .16049E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     10.601        20.905        .12307E-03   -1.5057    
  22  norm          .10000E-03    25.275        .13521E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     209.38        150.69        .13968E-03   -1.2804    
  24  norm          2.1995        1.8166        .32765E-04   -1.5411    
  25  norm          3.0191        3.3614        .48973E-04   -1.5360    
  26  Prefactor     .10000E-03    45.393        .18127E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          44.996        78.350        .59773E-04   -1.4365    
  28  Prefactor     .10000E-03    78.867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    4.9177        .59567E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          10.076        9.9177        .83096E-04   -1.5073    
  31  Prefactor     .10000E-03    630.98        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.1312        .64197        .26182E-03   -.88755    
  33  Prefactor     .41601        .50376        .34556E-03   -1.1600    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.13372e-10
Minuit parameter uncertainties:
  1  4.78872e-05
  2  134.174
  3  10.9223
  4  4.82913e-06
  5  5.58207e-07
  6  2.51974e-07
  7  1.20232e-07
  8  9.66964e-07
  9  26.8731
  10  1.04734e-05
  11  1.72649e-05
  12  48.93
  13  3.26667e-06
  14  45.7413
  15  85.1661
  16  0.00257624
  17  62.897
  18  0.000214273
  19  9.67261e-06
  20  6.4118e-05
  21  20.919
  22  4.37289e-05
  23  150.973
  24  1.81661
  25  3.3616
  26  1.061e-05
  27  78.5298
  28  7.64294e-05
  29  3.00278e-06
  30  9.91929
  31  4.37817e-07
  32  0.646494
  33  0.509268
Done.

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

Extracting fit parameters...

4FGL J0921.6+6216
   Spectrum: LogParabola
366         norm:  1.000e-04  2.576e-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:  4.160e-01  5.093e-01  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.131e+00  6.465e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 140.419 62.271
Photon Flux Upper Limit: 4.21e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.59e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/140658/likelihoodResults_408844801_409104001_4FGL_J0921.6+6216_daily_bin654.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): 102
logL (Free Index) = 757.383225784
delta logL = -9.94856297893e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 754.589965635
delta logL = 2.79316066324

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .28230       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .71084       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63661       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.

 FCN=   754.5900     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      462 TOTAL
                     EDM=   .33E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .28230        .22265        .19331E-02    .33594E-04
   2  alpha         5.0000        .77837        .34720    ** at limit **
   3  Normalizat    .71085        .50751        .70083E-01    .17235E-05
   4  Prefactor     .63660        .43107        .63147E-01    .10908E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.282298
  alpha      = 5
  Normalizat = 0.710853
  Prefactor  = 0.636603
 **********
 **   18 **HESSE 
 **********

 FCN=   754.5900     FROM HESSE     STATUS=OK            31 CALLS      493 TOTAL
                     EDM=   .19E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .28230        .17497        .85534E-05   -1.5602    
   2  alpha         5.0000        .71591        .16794E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .71085        .58651        .31015E-03   -1.0347    
   4  Prefactor     .63660        .49801        .27937E-03   -1.0607    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.94832e-13
Minuit parameter uncertainties:
  1  0.174967
  2  6.37078e-07
  3  0.591797
  4  0.501531
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/140658': 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) = 754.589965634
delta logL = 2.79316066356

Extracting fit parameters...

4FGL J0921.6+6216
   Spectrum: LogParabola
366         norm:  2.823e-01  1.750e-01  1.000e-04  1.000e+04 ( 1.000e-11)
367        alpha:  5.000e+00  6.371e-07  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:  6.366e-01  5.015e-01  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:  7.109e-01  5.918e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.01
Ra Dec: 140.419 62.271
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 4.16e-07 +/- 2.57e-07
Energy Flux (Free Index): 5.63e-05 +/- 3.48e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/140658/cmap_HighResolution_408844801_409104001_4FGL_J0921.6+6216_daily_bin654.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.59e-04', comment='SUCCESS', energy_flux2='5.63e-05', dlogl='2.79e+00', photon_flux2='4.16e-07', job_status='DONE', time_completed='2021-08-31 07:37:53.517107', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.42', photon_index_error='0.00', photon_flux_upper_limit='4.21e-07', energy_flux_error2='3.48e-05', EG='1.13', time_epoch_completed='1630420673.52', return_code='0', job_id='140658', GAL2='0.64', EG2='0.71', return_code2='0', photon_flux_error2='2.57e-07', ts2='6.01', photon_index='2.22' WHERE bin_id='654' AND source_name='4FGL J0921.6+6216' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 07:37:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0045>
Subject: Job 140658: <4FGL_J0921.6+6216_daily_bin654> in cluster <slac> Done

Job <4FGL_J0921.6+6216_daily_bin654> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Aug 31 07:26:01 2021
Job was executed on host(s) <bullet0045>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 07:26:03 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:26:03 2021
Terminated at Tue Aug 31 07:37:54 2021
Results reported at Tue Aug 31 07:37:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0921.6+6216_daily_bin654 140.419 62.2708 408844801 409104001 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 :                                   464.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             273.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   710 sec.
    Turnaround time :                            713 sec.

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

