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


Performing analysis on: 4FGL_J0922.6+4454_daily_bin431
RA = 140.659, Dec = 44.9131
tmin = 351043201, tmax = 351302401
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='161690', job_status='RUN', time_executed='2021-08-31 08:26:03.374195', time_epoch_executed='1630423563.37' WHERE source_name='4FGL J0922.6+4454' and cadence='daily' and bin_id='431'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/161690

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/161690/ft1_4FGL_J0922.6+4454_daily_bin431.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/161690/ft2_4FGL_J0922.6+4454_daily_bin431.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/161690/ft1_4FGL_J0922.6+4454_daily_bin431.fits outfile=/scratch/kocevski/161690/ft1_filteredMKT_4FGL_J0922.6+4454_daily_bin431.fits ra=140.659 dec=44.9131 rad=12.0 tmin=351043201.0 tmax=351302401.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 3.42
user 3.19
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/161690/ft2_4FGL_J0922.6+4454_daily_bin431.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/161690/ft2_4FGL_J0922.6+4454_daily_bin431.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/161690/ft1_filteredMKT_4FGL_J0922.6+4454_daily_bin431.fits evtable="EVENTS" outfile="/scratch/kocevski/161690/ft1_filtered_4FGL_J0922.6+4454_daily_bin431.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.48
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/161690/ft1_filtered_4FGL_J0922.6+4454_daily_bin431.fits" evtable="EVENTS" scfile=/scratch/kocevski/161690/ft2_4FGL_J0922.6+4454_daily_bin431.fits sctable="SC_DATA" outfile=/scratch/kocevski/161690/ltcube_351043201_351302401_4FGL_J0922.6+4454_daily_bin431.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/161690/ft2_4FGL_J0922.6+4454_daily_bin431.fits
.....................!
real 11.57
user 11.23
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/161690/ft1_filtered_4FGL_J0922.6+4454_daily_bin431.fits evtable="EVENTS" scfile=/scratch/kocevski/161690/ft2_4FGL_J0922.6+4454_daily_bin431.fits sctable="SC_DATA" expcube=/scratch/kocevski/161690/ltcube_351043201_351302401_4FGL_J0922.6+4454_daily_bin431.fits outfile=/scratch/kocevski/161690/expmap_351043201_351302401_4FGL_J0922.6+4454_daily_bin431.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/161690/ltcube_351043201_351302401_4FGL_J0922.6+4454_daily_bin431.fits
.....................!
real 189.45
user 184.66
sys 4.32

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

Setting source of interest to:
4FGL J0922.6+4454 @ 140.659 44.9131

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/161690/ft1_filtered_4FGL_J0922.6+4454_daily_bin431.fits scfile=/scratch/kocevski/161690/ft2_4FGL_J0922.6+4454_daily_bin431.fits outfile=/scratch/kocevski/161690/cmap_351043201_351302401_4FGL_J0922.6+4454_daily_bin431.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.659 yref=44.9131 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.55
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/161690/ft1_filtered_4FGL_J0922.6+4454_daily_bin431.fits scfile=/scratch/kocevski/161690/ft2_4FGL_J0922.6+4454_daily_bin431.fits outfile=/scratch/kocevski/161690/cmap_HighResolution_351043201_351302401_4FGL_J0922.6+4454_daily_bin431.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.659 yref=44.9131 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.56
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/161690/ft1_filtered_4FGL_J0922.6+4454_daily_bin431.fits evtable="EVENTS" scfile=/scratch/kocevski/161690/ft2_4FGL_J0922.6+4454_daily_bin431.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/161690/Model_4FGL_J0922.6+4454_daily_bin431.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/161690/ft1_filtered_4FGL_J0922.6+4454_daily_bin431.fits.....................!
real 48.06
user 46.86
sys 1.07

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/161690/ft1_filtered_4FGL_J0922.6+4454_daily_bin431.fits', '/scratch/kocevski/161690/ft2_4FGL_J0922.6+4454_daily_bin431.fits', expMap='/scratch/kocevski/161690/expmap_351043201_351302401_4FGL_J0922.6+4454_daily_bin431.fits', expCube='/scratch/kocevski/161690/ltcube_351043201_351302401_4FGL_J0922.6+4454_daily_bin431.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/161690/Model_4FGL_J0922.6+4454_daily_bin431.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0922.6+4454'

4FGL J0922.6+4454
   Spectrum: PowerLaw
324    Prefactor:  1.166e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  2.870e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
326        Scale:  7.394e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/161690/ft1_filtered_4FGL_J0922.6+4454_daily_bin431.fits
Spacecraft file(s): /scratch/kocevski/161690/ft2_4FGL_J0922.6+4454_daily_bin431.fits
Exposure map: /scratch/kocevski/161690/expmap_351043201_351302401_4FGL_J0922.6+4454_daily_bin431.fits
Exposure cube: /scratch/kocevski/161690/ltcube_351043201_351302401_4FGL_J0922.6+4454_daily_bin431.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/161690/Model_4FGL_J0922.6+4454_daily_bin431.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) = 5148.50191069

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.6745       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.2778       1.0000         .10000E-03   10000.    
     7 'norm      '    .10103E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .91663       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.8058       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.9188       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .93836E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    8.7442       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .15836       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    5.7364       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    84.605       1.0000         .10000E-03   10000.    
    27 'norm      '    .94126       1.0000         .10000E-03   10000.    
    28 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10833E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    6.4228       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.1940       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .47741       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6810E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5148.307     FROM MIGRAD    STATUS=CONVERGED    919 CALLS     4038 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6743        .86944        .10494E-07   -.69198E-03
   2  Prefactor     .10001E-03    6.7905        .21524E-05** at limit **
   3  Prefactor     .10000E-03    9.8318        .13936E-05** at limit **
   4  Prefactor     .10000E-03    5.5676        .54470E-06** at limit **
   5  Prefactor     .10000E-03    2.3605       -.77468E-08** at limit **
   6  norm          3.2765        4.7895       -.25853E-07   -.47659E-04
   7  norm          .10000E-03    3.3024       -.12963E-05** at limit **
   8  Prefactor     .10000E-03    4.1646       -.31395E-07** at limit **
   9  Prefactor     .91756        2.9048        .31516E-06    .92511E-04
  10  Prefactor     .10000E-03    5.0070       -.69246E-06** at limit **
  11  Prefactor     .10000E-03    18.254        .19169E-05** at limit **
  12  Prefactor     1.8058        1.7824       -.17794E-07   -.23853E-04
  13  Prefactor     .10000E-03    13.490       -.69560E-06** at limit **
  14  Prefactor     2.9189        2.9042        .14281E-05    .14287E-02
  15  Prefactor     .10343E-03    17.912       -.40876E-05** at limit **
  16  norm          .10000E-03    .32658       -.23363E-07** at limit **
  17  Prefactor     .10000E-03    1.5839       -.67593E-06** at limit **
  18  norm          8.7503        7.5869        .16223E-06    .47173E-03
  19  Prefactor     .10000E-03    1.0828        .80778E-07** at limit **
  20  Prefactor     .10000E-03    4.3746        .35699E-06** at limit **
  21  Prefactor     .14434        1.7499       -.14662E-06    .81990E-04
  22  Prefactor     .10000E-03    4.1490       -.20731E-06** at limit **
  23  norm          5.7365        8.2856        .58707E-07    .19862E-04
  24  Prefactor     .10000E-03    7.4664       -.93149E-06** at limit **
  25  Prefactor     .10000E-03    2.9536        .18353E-07** at limit **
  26  Prefactor     84.604        36.904        .29415E-06    .10737E-04
  27  norm          .94118        .76522        .64096E-07   -.12867E-03
  28  norm          .10000E-03    5.1009       -.46940E-06** at limit **
  29  Prefactor     .10000E-03    3.5315        .13739E-05** at limit **
  30  Prefactor     .10000E-03    13.725       -.78633E-06** at limit **
  31  norm          6.4222        3.3675        .61438E-07   -.14103E-03
  32  Normalizat    1.1940        .16760       -.15584E-05   -.23385E-03
  33  Prefactor     .47739        .16782        .29022E-06   -.18165E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.67434
  Prefactor  = 0.000100014
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.27649
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.917556
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.80578
  Prefactor  = 0.0001
  Prefactor  = 2.91895
  Prefactor  = 0.000103429
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 8.75034
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.144338
  Prefactor  = 0.0001
  norm       = 5.73647
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 84.6042
  norm       = 0.941178
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 6.42219
  Normalizat = 1.19397
  Prefactor  = 0.477386
 **********
 **   18 **HESSE 
 **********

 FCN=   5148.307     FROM HESSE     STATUS=OK           705 CALLS     4743 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6743        .86436        .36765E-04   -1.5381    
   2  Prefactor     .10001E-03    26.437        .32738E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.8572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.6049        .16538E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.3689        .10765E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.2765        4.7111        .17702E-03   -1.5346    
   7  norm          .10000E-03    5.6393        .23770E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    4.1703        .14300E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .91756        2.8659        .19214E-03   -1.5516    
  10  Prefactor     .10000E-03    5.0072        .15674E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    18.277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.8058        1.8008        .92901E-04   -1.5439    
  13  Prefactor     .10000E-03    13.495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.9189        3.0921        .60534E-03   -1.5366    
  15  Prefactor     .10343E-03    19.956        .74503E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .66056        .73350E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.4502        .15270E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          8.7503        7.8983        .67776E-03   -1.5116    
  19  Prefactor     .10000E-03    1.1047        .72868E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.4278        .14657E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .14434        21.084        .17774E-02   -1.5632    
  22  Prefactor     .10000E-03    4.1528        .14272E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          5.7365        8.2802        .16770E-03   -1.5229    
  24  Prefactor     .10000E-03    7.4676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    2.9699        .12026E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     84.604        37.053        .43673E-04   -1.3866    
  27  norm          .94118        .73684        .54260E-03   -1.5514    
  28  norm          .10000E-03    5.1206        .15814E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    12.997        .24157E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    13.728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          6.4222        3.3472        .91826E-04   -1.5201    
  32  Normalizat    1.1940        .18467        .18801E-03   -.86789    
  33  Prefactor     .47739        .18629        .30798E-03   -1.1303    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.78005e-09
Minuit parameter uncertainties:
  1  0.864369
  2  0.00122487
  3  4.62338e-05
  4  1.29475e-05
  5  1.94568e-06
  6  4.71164
  7  4.60854e-05
  8  3.16172e-06
  9  2.86631
  10  1.89308e-05
  11  8.02842e-05
  12  1.80086
  13  3.93777e-05
  14  3.09226
  15  0.0165496
  16  9.98218e-06
  17  8.09066e-05
  18  7.89927
  19  4.55793e-06
  20  6.88817e-06
  21  3.48904
  22  6.22825e-06
  23  8.28182
  24  3.14036e-05
  25  2.37837e-06
  26  37.0633
  27  0.736843
  28  1.95203e-05
  29  0.000270345
  30  4.26702e-05
  31  3.34725
  32  0.184768
  33  0.186531
Done.

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

Extracting fit parameters...

4FGL J0922.6+4454
   Spectrum: PowerLaw
324    Prefactor:  1.000e-04  8.091e-05  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  2.870e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
326        Scale:  7.394e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
678    Prefactor:  4.774e-01  1.865e-01  0.000e+00  1.000e+01 ( 1.000e+00)
679        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
680        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
677   Normalization:  1.194e+00  1.848e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 140.659 44.913
Photon Flux Upper Limit: 8.57e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.81e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/161690/likelihoodResults_351043201_351302401_4FGL_J0922.6+4454_daily_bin431.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) = 5148.3076851
delta logL = -0.00107402591129

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5148.3066156
delta logL = -4.53457778349e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14335E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9197       1.0000          .0000       10.000    
     3 'Normalizat'    1.1943       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .47713       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6810E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5148.307     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      238 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    .91377        .45510E-01** at limit **
   2  Index         2.9850        3.8043        .50000       -.14216E-03
   3  Normalizat    1.1940        .38025E-02    .35033E-01    .11670E-03
   4  Prefactor     .47739        .41105E-02    .69567E-01    .77436E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100017
  Index      = 2.98504
  Normalizat = 1.19397
  Prefactor  = 0.477387
 **********
 **   18 **HESSE 
 **********

 FCN=   5148.307     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      271 TOTAL
                     EDM=   .29E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    466.00        .13651E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9850        5.3254        .50000       -.41478    
   3  Normalizat    1.1940        .37314E-01    .18801E-03   -.86789    
   4  Prefactor     .47739        .40111E-01    .30798E-03   -1.1303    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.8574e-06
Minuit parameter uncertainties:
  1  0.00562595
  2  39.9654
  3  0.0373153
  4  0.0401129
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/161690': 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): 102
logL (Free Index) = 5148.30660786
delta logL = 3.21211246046e-06

Extracting fit parameters...

4FGL J0922.6+4454
   Spectrum: PowerLaw
324    Prefactor:  1.000e-04  5.626e-03  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  2.985e+00  3.997e+01  0.000e+00  1.000e+01 (-1.000e+00)
326        Scale:  7.394e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
678    Prefactor:  4.774e-01  4.011e-02  0.000e+00  1.000e+01 ( 1.000e+00)
679        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
680        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
677   Normalization:  1.194e+00  3.732e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 140.659 44.913

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/161690/cmap_HighResolution_351043201_351302401_4FGL_J0922.6+4454_daily_bin431.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.81e-03', job_status='DONE', photon_flux_upper_limit='8.57e-08', time_completed='2021-08-31 08:41:21.937915', job_id='161690', GAL2='0.48', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1630424481.94', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.48', dlogl='3.21e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.87' WHERE bin_id='431' AND source_name='4FGL J0922.6+4454' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 08:41:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0193>
Subject: Job 161690: <4FGL_J0922.6+4454_daily_bin431> in cluster <slac> Done

Job <4FGL_J0922.6+4454_daily_bin431> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Aug 31 08:25:47 2021
Job was executed on host(s) <bullet0193>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 08:25:47 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 31 08:25:47 2021
Terminated at Tue Aug 31 08:41:22 2021
Results reported at Tue Aug 31 08:41:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0922.6+4454_daily_bin431 140.659 44.9131 351043201 351302401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0922.6+4454 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   911.16 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             303.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   935 sec.
    Turnaround time :                            935 sec.

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

