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


Performing analysis on: 4FGL_J0921.6+6216_monthly_bin43
RA = 140.419, Dec = 62.2708
tmin = 348451201, tmax = 351043201
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='714154', job_status='RUN', time_executed='2021-10-20 16:44:33.128247', time_epoch_executed='1634773473.13' WHERE source_name='4FGL J0921.6+6216' and cadence='monthly' and bin_id='43'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/714154

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/714154/ft1_4FGL_J0921.6+6216_monthly_bin43.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/714154/ft2_4FGL_J0921.6+6216_monthly_bin43.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/714154/ft1_4FGL_J0921.6+6216_monthly_bin43.fits outfile=/scratch/kocevski/714154/ft1_filteredMKT_4FGL_J0921.6+6216_monthly_bin43.fits ra=140.419 dec=62.2708 rad=12.0 tmin=348451201.0 tmax=351043201.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 30.74
user 29.99
sys 0.63

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/714154/ft2_4FGL_J0921.6+6216_monthly_bin43.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/714154/ft1_filteredMKT_4FGL_J0921.6+6216_monthly_bin43.fits evtable="EVENTS" outfile="/scratch/kocevski/714154/ft1_filtered_4FGL_J0921.6+6216_monthly_bin43.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.83
user 0.65
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/714154/ft1_filtered_4FGL_J0921.6+6216_monthly_bin43.fits" evtable="EVENTS" scfile=/scratch/kocevski/714154/ft2_4FGL_J0921.6+6216_monthly_bin43.fits sctable="SC_DATA" outfile=/scratch/kocevski/714154/ltcube_348451201_351043201_4FGL_J0921.6+6216_monthly_bin43.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/714154/ft2_4FGL_J0921.6+6216_monthly_bin43.fits
.....................!
real 118.70
user 117.96
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/714154/ft1_filtered_4FGL_J0921.6+6216_monthly_bin43.fits evtable="EVENTS" scfile=/scratch/kocevski/714154/ft2_4FGL_J0921.6+6216_monthly_bin43.fits sctable="SC_DATA" expcube=/scratch/kocevski/714154/ltcube_348451201_351043201_4FGL_J0921.6+6216_monthly_bin43.fits outfile=/scratch/kocevski/714154/expmap_348451201_351043201_4FGL_J0921.6+6216_monthly_bin43.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/714154/ltcube_348451201_351043201_4FGL_J0921.6+6216_monthly_bin43.fits
.....................!
real 192.22
user 186.14
sys 5.08

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/714154/ft1_filtered_4FGL_J0921.6+6216_monthly_bin43.fits scfile=/scratch/kocevski/714154/ft2_4FGL_J0921.6+6216_monthly_bin43.fits outfile=/scratch/kocevski/714154/cmap_348451201_351043201_4FGL_J0921.6+6216_monthly_bin43.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.77
user 0.61
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/714154/ft1_filtered_4FGL_J0921.6+6216_monthly_bin43.fits scfile=/scratch/kocevski/714154/ft2_4FGL_J0921.6+6216_monthly_bin43.fits outfile=/scratch/kocevski/714154/cmap_HighResolution_348451201_351043201_4FGL_J0921.6+6216_monthly_bin43.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.78
user 0.61
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/714154/ft1_filtered_4FGL_J0921.6+6216_monthly_bin43.fits', '/scratch/kocevski/714154/ft2_4FGL_J0921.6+6216_monthly_bin43.fits', expMap='/scratch/kocevski/714154/expmap_348451201_351043201_4FGL_J0921.6+6216_monthly_bin43.fits', expCube='/scratch/kocevski/714154/ltcube_348451201_351043201_4FGL_J0921.6+6216_monthly_bin43.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/714154/Model_4FGL_J0921.6+6216_monthly_bin43.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/714154/ft1_filtered_4FGL_J0921.6+6216_monthly_bin43.fits
Spacecraft file(s): /scratch/kocevski/714154/ft2_4FGL_J0921.6+6216_monthly_bin43.fits
Exposure map: /scratch/kocevski/714154/expmap_348451201_351043201_4FGL_J0921.6+6216_monthly_bin43.fits
Exposure cube: /scratch/kocevski/714154/ltcube_348451201_351043201_4FGL_J0921.6+6216_monthly_bin43.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/714154/Model_4FGL_J0921.6+6216_monthly_bin43.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 81164.3396856

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.1957       1.0000         .10000E-03   10000.    
     3 'norm      '    .31049       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.2150       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.1723       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.8474       1.0000         .10000E-03   10000.    
     8 'norm      '    7.5114       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.9309       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.2503       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.2662       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .28032       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.5943       1.0000         .10000E-03   10000.    
    22 'norm      '    1.3031       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .92019       1.0000         .10000E-03   10000.    
    24 'norm      '    1.7374       1.0000         .10000E-03   10000.    
    25 'norm      '    .28061       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .22259E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    4.5907       1.0000         .10000E-03   10000.    
    28 'Prefactor '    47.694       1.0000         .10000E-03   10000.    
    29 'norm      '    1.4485       1.0000         .10000E-03   10000.    
    30 'norm      '    1.6286       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .87419       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.1270       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=   81164.12     FROM MIGRAD    STATUS=CONVERGED    881 CALLS     3988 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.360       -.22836E-05** at limit **
   2  Prefactor     6.1956        4.1963        .10735E-08    .21418E-05
   3  norm          .31056        .37929       -.14137E-07   -.11092E-03
   4  Prefactor     .10000E-03    2.4988        .28435E-06** at limit **
   5  Prefactor     1.2150        .39416        .21991E-08    .53750E-04
   6  Prefactor     1.1723        1.4305       -.56951E-08   -.46466E-03
   7  Prefactor     3.8476        1.5420       -.42528E-08   -.15034E-03
   8  norm          7.5114        .78620       -.65041E-08    .10251E-03
   9  Prefactor     .10000E-03    .60482       -.24377E-06** at limit **
  10  Prefactor     4.9308        6.5522       -.41944E-07   -.65112E-05
  11  norm          .10000E-03    .34810       -.53047E-07** at limit **
  12  Prefactor     3.2504        2.3745        .20858E-07    .43851E-05
  13  Prefactor     .10000E-03    3.6187       -.79627E-07** at limit **
  14  Prefactor     1.2669        1.6027        .16891E-07   -.37183E-03
  15  Prefactor     .10000E-03    1.2511       -.12039E-06** at limit **
  16  norm          .28025        .18726       -.24348E-07   -.69084E-03
  17  Prefactor     .10000E-03    .81958       -.26143E-07** at limit **
  18  Prefactor     .10000E-03    .16102       -.79270E-07** at limit **
  19  Prefactor     .10000E-03    .64428        .65930E-07** at limit **
  20  Prefactor     .10000E-03    .42983       -.12299E-06** at limit **
  21  Prefactor     2.5945        1.8301       -.10885E-07    .35213E-03
  22  norm          1.3032        1.3009       -.38943E-06   -.74315E-04
  23  Prefactor     .92050        5.1167        .42236E-07    .67124E-04
  24  norm          1.7374        .17864        .15693E-07    .46572E-02
  25  norm          .28068        .15734        .10452E-07    .18716E-03
  26  Prefactor     .10000E-03    10.369       -.10553E-04** at limit **
  27  norm          4.5906        2.9452        .21955E-07   -.19546E-04
  28  Prefactor     47.693        6.4234        .78184E-07    .32632E-03
  29  norm          1.4487        .65253       -.31779E-07    .61792E-04
  30  norm          1.6287        .39581        .33088E-08    .53840E-03
  31  Prefactor     .10000E-03    10.000        .13445E-04** at limit **
  32  Normalizat    .87418        .52512E-01    .12022E-06    .89060E-03
  33  Prefactor     1.1270        .44177E-01    .40390E-07    .70306E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 6.1956
  norm       = 0.310556
  Prefactor  = 0.0001
  Prefactor  = 1.21505
  Prefactor  = 1.17228
  Prefactor  = 3.84758
  norm       = 7.51139
  Prefactor  = 0.0001
  Prefactor  = 4.93075
  norm       = 0.0001
  Prefactor  = 3.25038
  Prefactor  = 0.0001
  Prefactor  = 1.26691
  Prefactor  = 0.0001
  norm       = 0.280247
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.59453
  norm       = 1.30323
  Prefactor  = 0.920504
  norm       = 1.73745
  norm       = 0.28068
  Prefactor  = 0.0001
  norm       = 4.59061
  Prefactor  = 47.6931
  norm       = 1.44872
  norm       = 1.62868
  Prefactor  = 0.0001
  Normalizat = 0.874182
  Prefactor  = 1.12697
 **********
 **   18 **HESSE 
 **********

 FCN=   81164.12     FROM HESSE     STATUS=OK           711 CALLS     4699 TOTAL
                     EDM=   .33E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.1956        4.1876        .80640E-03   -1.5210    
   3  norm          .31056        .69051        .17918E-02   -1.5597    
   4  Prefactor     .10000E-03    2.5241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.2150        .38782        .95602E-04   -1.5488    
   6  Prefactor     1.1723        2.0396        .21178E-02   -1.5491    
   7  Prefactor     3.8476        1.5339        .10287E-02   -1.5316    
   8  norm          7.5114        .78498        .77477E-04   -1.5160    
   9  Prefactor     .10000E-03    .62032        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.9308        6.5489        .90562E-03   -1.5264    
  11  norm          .10000E-03    .83002        .32695E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.2504        2.3761        .11233E-02   -1.5347    
  13  Prefactor     .10000E-03    3.6717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.2669        2.1697        .19791E-02   -1.5483    
  15  Prefactor     .10000E-03    1.2589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .28025        .16442        .93463E-03   -1.5602    
  17  Prefactor     .10000E-03    .82876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    .70615        .21300E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .64947        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    .43696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.5945        1.7819        .25332E-03   -1.5386    
  22  norm          1.3032        1.2733        .31007E-03   -1.5480    
  23  Prefactor     .92050        4.9868        .51522E-03   -1.5516    
  24  norm          1.7374        .17878        .37083E-04   -1.5444    
  25  norm          .28068        .13634        .80018E-03   -1.5602    
  26  Prefactor     .10000E-03    10.562        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          4.5906        2.9440        .93933E-03   -1.5279    
  28  Prefactor     47.693        6.3598        .58062E-04   -1.4326    
  29  norm          1.4487        .63854        .13027E-03   -1.5467    
  30  norm          1.6287        .39539        .85928E-04   -1.5453    
  31  Prefactor     .10000E-03    10.042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .87418        .57139E-01    .27873E-03   -.97373    
  33  Prefactor     1.1270        .49608E-01    .22441E-03   -.88609    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.28733e-07
Minuit parameter uncertainties:
  1  7.41603e-08
  2  4.1878
  3  0.690525
  4  1.40965e-06
  5  0.38782
  6  2.03968
  7  1.53391
  8  0.784986
  9  1.97319e-07
  10  6.54985
  11  5.40398e-06
  12  2.37621
  13  1.59377e-06
  14  2.16979
  15  8.1492e-08
  16  0.164418
  17  6.49566e-07
  18  1.98935e-05
  19  3.46324e-09
  20  4.81485e-08
  21  1.78195
  22  1.27332
  23  4.28534
  24  0.178778
  25  0.136341
  26  0.000119542
  27  2.94409
  28  6.35991
  29  0.638543
  30  0.395395
  31  1.55101e-05
  32  0.0571429
  33  0.0496097
Done.

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

Extracting fit parameters...

4FGL J0921.6+6216
   Spectrum: LogParabola
366         norm:  2.802e-01  1.644e-01  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:  1.127e+00  4.961e-02  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:  8.742e-01  5.714e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.59
Ra Dec: 140.419 62.271
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 1.04e-08 +/- 6.12e-09
Energy Flux (Fixed Index): 3.94e-06 +/- 2.31e-06

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) = 81162.8881613
delta logL = 1.22724043492

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 81162.883819
delta logL = 1.23158275077

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .26012       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0298       1.0000          .0000       5.0000    
     3 'Normalizat'    .85890       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1332       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=   81162.88     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      224 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .26007        .85157        .10249E-01    .24905E-01
   2  alpha         3.0295        1.8918        .42385        .53774E-03
   3  Normalizat    .85890        .10090E-01    .63587E-01    .24276E-03
   4  Prefactor     1.1332        .91185E-02    .36443E-01    .42120E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.260066
  alpha      = 3.02951
  Normalizat = 0.858903
  Prefactor  = 1.13319
 **********
 **   18 **HESSE 
 **********

 FCN=   81162.88     FROM HESSE     STATUS=OK            35 CALLS      259 TOTAL
                     EDM=   .27E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .26007        .28033        .62230E-03   -1.5606    
   2  alpha         3.0295        .93292        .32992E-01    .21342    
   3  Normalizat    .85890        .55179E-01    .28126E-03   -.97920    
   4  Prefactor     1.1332        .49077E-01    .22387E-03   -.88413    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.67561e-07
Minuit parameter uncertainties:
  1  0.280328
  2  0.957218
  3  0.0551823
  4  0.0490792
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/714154': 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) = 81162.8838184
delta logL = 1.2315833618

Extracting fit parameters...

4FGL J0921.6+6216
   Spectrum: LogParabola
366         norm:  2.601e-01  2.803e-01  1.000e-04  1.000e+04 ( 1.000e-11)
367        alpha:  3.030e+00  9.572e-01  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.133e+00  4.908e-02  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:  8.589e-01  5.518e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.22
Ra Dec: 140.419 62.271
Photon Index (Free Index): 3.03 +/- 0.96
Photon Flux (Free Index): 2.38e-08 +/- 1.15e-08
Energy Flux (Free Index): 4.83e-06 +/- 2.35e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/714154/cmap_HighResolution_348451201_351043201_4FGL_J0921.6+6216_monthly_bin43.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.04e-08', energy_flux2='4.83e-06', photon_flux_error='6.12e-09', dlogl='1.23e+00', energy_flux='3.94e-06', photon_flux2='2.38e-08', job_status='DONE', time_completed='2021-10-20 19:37:59.496631', photon_index_error2='0.96', photon_index2='3.03', ts='4.59', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', energy_flux_error2='2.35e-06', EG='0.87', time_epoch_completed='1634783879.5', return_code='0', job_id='714154', GAL2='1.13', EG2='0.86', return_code2='0', energy_flux_error='2.31e-06', photon_flux_error2='1.15e-08', ts2='7.22', photon_index='2.22' WHERE bin_id='43' AND source_name='4FGL J0921.6+6216' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Wed Oct 20 19:39:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 714154: <4FGL_J0921.6+6216_monthly_bin43> in cluster <slac> Done

Job <4FGL_J0921.6+6216_monthly_bin43> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Oct 20 16:40:22 2021
Job was executed on host(s) <bullet0283>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Oct 20 16:41:56 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Oct 20 16:41:56 2021
Terminated at Wed Oct 20 19:39:45 2021
Results reported at Wed Oct 20 19:39:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0921.6+6216_monthly_bin43 140.419 62.2708 348451201 351043201 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 :                                   8874.00 sec.
    Max Memory :                                 630 MB
    Average Memory :                             391.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10669 sec.
    Turnaround time :                            10763 sec.

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

