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


Performing analysis on: 4FGL_J0922.6+4454_daily_bin1525
RA = 140.659, Dec = 44.9131
tmin = 634608001, tmax = 634867201
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='172158', job_status='RUN', time_executed='2021-08-31 08:57:25.036756', time_epoch_executed='1630425445.04' WHERE source_name='4FGL J0922.6+4454' and cadence='daily' and bin_id='1525'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/172158

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/172158/ft1_4FGL_J0922.6+4454_daily_bin1525.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/172158/ft2_4FGL_J0922.6+4454_daily_bin1525.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/172158/ft1_4FGL_J0922.6+4454_daily_bin1525.fits outfile=/scratch/kocevski/172158/ft1_filteredMKT_4FGL_J0922.6+4454_daily_bin1525.fits ra=140.659 dec=44.9131 rad=12.0 tmin=634608001.0 tmax=634867201.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 8.77
user 2.90
sys 5.64

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/172158/ft2_4FGL_J0922.6+4454_daily_bin1525.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/172158/ft1_filteredMKT_4FGL_J0922.6+4454_daily_bin1525.fits evtable="EVENTS" outfile="/scratch/kocevski/172158/ft1_filtered_4FGL_J0922.6+4454_daily_bin1525.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 6.03
user 0.34
sys 5.57

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/172158/ft1_filtered_4FGL_J0922.6+4454_daily_bin1525.fits" evtable="EVENTS" scfile=/scratch/kocevski/172158/ft2_4FGL_J0922.6+4454_daily_bin1525.fits sctable="SC_DATA" outfile=/scratch/kocevski/172158/ltcube_634608001_634867201_4FGL_J0922.6+4454_daily_bin1525.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/172158/ft2_4FGL_J0922.6+4454_daily_bin1525.fits
.....................!
real 18.92
user 12.37
sys 6.42

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/172158/ft1_filtered_4FGL_J0922.6+4454_daily_bin1525.fits evtable="EVENTS" scfile=/scratch/kocevski/172158/ft2_4FGL_J0922.6+4454_daily_bin1525.fits sctable="SC_DATA" expcube=/scratch/kocevski/172158/ltcube_634608001_634867201_4FGL_J0922.6+4454_daily_bin1525.fits outfile=/scratch/kocevski/172158/expmap_634608001_634867201_4FGL_J0922.6+4454_daily_bin1525.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/172158/ltcube_634608001_634867201_4FGL_J0922.6+4454_daily_bin1525.fits
.....................!
real 201.63
user 187.54
sys 11.56

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/172158/ft1_filtered_4FGL_J0922.6+4454_daily_bin1525.fits scfile=/scratch/kocevski/172158/ft2_4FGL_J0922.6+4454_daily_bin1525.fits outfile=/scratch/kocevski/172158/cmap_634608001_634867201_4FGL_J0922.6+4454_daily_bin1525.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 6.02
user 0.38
sys 5.48

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/172158/ft1_filtered_4FGL_J0922.6+4454_daily_bin1525.fits scfile=/scratch/kocevski/172158/ft2_4FGL_J0922.6+4454_daily_bin1525.fits outfile=/scratch/kocevski/172158/cmap_HighResolution_634608001_634867201_4FGL_J0922.6+4454_daily_bin1525.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 6.04
user 0.38
sys 5.44

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/172158/ft1_filtered_4FGL_J0922.6+4454_daily_bin1525.fits', '/scratch/kocevski/172158/ft2_4FGL_J0922.6+4454_daily_bin1525.fits', expMap='/scratch/kocevski/172158/expmap_634608001_634867201_4FGL_J0922.6+4454_daily_bin1525.fits', expCube='/scratch/kocevski/172158/ltcube_634608001_634867201_4FGL_J0922.6+4454_daily_bin1525.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/172158/Model_4FGL_J0922.6+4454_daily_bin1525.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/172158/ft1_filtered_4FGL_J0922.6+4454_daily_bin1525.fits
Spacecraft file(s): /scratch/kocevski/172158/ft2_4FGL_J0922.6+4454_daily_bin1525.fits
Exposure map: /scratch/kocevski/172158/expmap_634608001_634867201_4FGL_J0922.6+4454_daily_bin1525.fits
Exposure cube: /scratch/kocevski/172158/ltcube_634608001_634867201_4FGL_J0922.6+4454_daily_bin1525.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/172158/Model_4FGL_J0922.6+4454_daily_bin1525.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) = 336.098051903

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7587       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10277E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    96.138       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10275E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.3331       1.0000         .10000E-03   10000.    
     8 'Prefactor '    64.828       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10683E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10411E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .19124E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    178.71       1.0000         .10000E-03   10000.    
    23 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    24 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    27 'norm      '    1.3812       1.0000         .10000E-03   10000.    
    28 'norm      '    .10901E-02   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    35.594       1.0000         .10000E-03   10000.    
    31 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    33 'Prefactor '    .52119       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6810E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   335.0869     FROM MIGRAD    STATUS=CONVERGED    114 CALLS     4590 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7588        1.7433       -.74007E-06    .10614E-03
   2  Prefactor     .10383E-03    18.318       -.30427E-04** at limit **
   3  Prefactor     .10262E-03    40.455       -.75125E-04** at limit **
   4  Prefactor     96.150        2.0751        .61056E-06   -.22316E-02
   5  Prefactor     .10331E-03    14.530        .13777E-04** at limit **
   6  norm          .10000E-03    10.524        .35519E-06** at limit **
   7  norm          3.3421        1.6519        .52516E-05    .44325E-03
   8  Prefactor     64.833        1.2920        .36501E-06   -.76635E-03
   9  Prefactor     .10000E-03    6.5432        .41682E-05** at limit **
  10  Prefactor     .10073E-03    10.158        .29206E-04** at limit **
  11  Prefactor     .10039E-03    31.830        .17630E-04** at limit **
  12  Prefactor     .13672E-03    61.251        .86922E-04** at limit **
  13  Prefactor     .10267E-03    109.59       -.15933E-04** at limit **
  14  Prefactor     .10002E-03    20.649        .17110E-04** at limit **
  15  Prefactor     .12178E-03    97.488        .13280E-04** at limit **
  16  norm          .10000E-03    2.3087        .30207E-05** at limit **
  17  Prefactor     .10000E-03    15.820       -.63440E-05** at limit **
  18  norm          .44463E-03    108.40       -.50280E-04** at limit **
  19  Prefactor     .10066E-03    10.919       -.30304E-05** at limit **
  20  Prefactor     .10060E-03    9.9687        .27830E-04** at limit **
  21  Prefactor     .10000E-03    8.4477       -.81560E-06** at limit **
  22  Prefactor     178.70        1.7410       -.46598E-06    .31383E-02
  23  norm         10000.0        .41013        .35514E-05   -.13981E-03
  24  Prefactor    10000.0        .53827        .45771E-05** at limit **
  25  Prefactor     .10200E-03    22.535       -.68963E-04** at limit **
  26  Prefactor    10000.0        .27511        .16106E-05   -.64766E-04
  27  norm          1.3834        5.4103        .21603E-05    .24603E-05
  28  norm          .49873E-03    3.9208       -.14882E-04** at limit **
  29  Prefactor     .10216E-03    29.178       -.18837E-04** at limit **
  30  Prefactor     35.599        1.3716        .69835E-06   -.96569E-03
  31  norm         10000.0        1.2938        .75486E-05** at limit **
  32  Normalizat    .10000E-01    1.6678        .31701E-04** at limit **
  33  Prefactor     .52076        .28320       -.16178E-04    .14609E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.75876
  Prefactor  = 0.000103829
  Prefactor  = 0.000102623
  Prefactor  = 96.1498
  Prefactor  = 0.000103308
  norm       = 0.0001
  norm       = 3.34212
  Prefactor  = 64.8333
  Prefactor  = 0.0001
  Prefactor  = 0.000100735
  Prefactor  = 0.000100389
  Prefactor  = 0.000136721
  Prefactor  = 0.000102669
  Prefactor  = 0.000100017
  Prefactor  = 0.000121783
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000444633
  Prefactor  = 0.000100657
  Prefactor  = 0.000100598
  Prefactor  = 0.0001
  Prefactor  = 178.701
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 0.000102004
  Prefactor  = 10000
  norm       = 1.38344
  norm       = 0.000498727
  Prefactor  = 0.000102164
  Prefactor  = 35.5992
  norm       = 10000
  Normalizat = 0.01
  Prefactor  = 0.52076
 **********
 **   18 **HESSE 
 **********

 FCN=   335.0869     FROM HESSE     STATUS=OK           741 CALLS     5331 TOTAL
                     EDM=   .26E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7588        1.7421        .52968E-02   -1.5443    
   2  Prefactor     .10383E-03    39.316        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10262E-03    80.442        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     96.150        64.279        .10248E-02   -1.3744    
   5  Prefactor     .10331E-03    29.821        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    10.483        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.3421        18.345        .55426E-02   -1.5342    
   8  Prefactor     64.833        56.961        .12461E-02   -1.4096    
   9  Prefactor     .10000E-03    6.5263        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10073E-03    35.401        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10039E-03    97.933        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .13672E-03    138.96        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10267E-03    297.79        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10002E-03    20.505        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .12178E-03    247.25        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.3044        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    15.719        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .44463E-03    420.76        .90712E-02   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10066E-03    37.743        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10060E-03    35.523        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.4195        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     178.70        191.87        .75482E-03   -1.3026    
  23  norm         10000.0        2030.4        .99197E-02    1.5698    
  24  Prefactor    10000.0        1879.1        .10208E-01    1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10200E-03    26.962        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor    10000.0        2169.6        .98344E-02    1.5697    
  27  norm          1.3834        5.5227        .92581E-02   -1.5473    
  28  norm          .49873E-03    1061.5        .10352E-01   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10216E-03    90.023        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     35.599        2282.1        .16793E-02   -1.4514    
  31  norm         10000.0        986.56        .10690E-01    1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .10000E-01    .76101        .24294       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .52076        .40496        .39968E-01   -1.1103    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.59368e-06
Minuit parameter uncertainties:
  1  1.74213
  2  0.0245545
  3  0.0290909
  4  64.3259
  5  0.0198752
  6  1.46425e-07
  7  15.6675
  8  57.0088
  9  2.1622e-05
  10  0.0102058
  11  0.0123568
  12  0.1432
  13  0.0566728
  14  0.00117039
  15  0.147389
  16  9.30623e-06
  17  5.49789e-05
  18  0.76704
  19  0.00996405
  20  0.00922193
  21  4.04355e-06
  22  192.547
  23  4.80085
  24  3.22108
  25  0.0147071
  26  5.52011
  27  5.52473
  28  1.32532
  29  0.0279592
  30  595.587
  31  0.522501
  32  1.55543e-06
  33  0.407233
Done.

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

Extracting fit parameters...

4FGL J0922.6+4454
   Spectrum: PowerLaw
324    Prefactor:  1.000e-04  5.498e-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:  5.208e-01  4.072e-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.000e-02  1.555e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 140.659 44.913
Photon Flux Upper Limit: 1.53e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.22e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/172158/likelihoodResults_634608001_634867201_4FGL_J0922.6+4454_daily_bin1525.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) = 335.087084982
delta logL = -0.000213079502203

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 335.08688595
delta logL = -1.40483002156e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10843E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.5369       1.0000          .0000       10.000    
     3 'Normalizat'    .10036E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .52074       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   335.0869     FROM MIGRAD    STATUS=CONVERGED    116 CALLS      313 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    417.01        .50798E-02** at limit **
   2  Index         1.9224        6.3985        .50000        .30837E-06
   3  Normalizat    .10000E-01    .58295E-01    .84507E-02** at limit **
   4  Prefactor     .52076        .49613E-01    .21974E-03    .62971E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100008
  Index      = 1.92245
  Normalizat = 0.01
  Prefactor  = 0.520762
 **********
 **   18 **HESSE 
 **********

 FCN=   335.0869     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      342 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    1902.9        .91835E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9224        5.8262        .50000       -.66303    
   3  Normalizat    .10000E-01    .31949        .16901E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .52076        .11646        .43948E-04   -1.1103    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.10898e-09
Minuit parameter uncertainties:
  1  0.00797568
  2  3146.77
  3  1.75618e-06
  4  0.116513
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/172158': 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) = 335.086870641
delta logL = 1.26138473888e-06

Extracting fit parameters...

4FGL J0922.6+4454
   Spectrum: PowerLaw
324    Prefactor:  1.000e-04  7.976e-03  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  1.922e+00  3.147e+03  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:  5.208e-01  1.165e-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.000e-02  1.756e-06  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/172158/cmap_HighResolution_634608001_634867201_4FGL_J0922.6+4454_daily_bin1525.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.22e-01', job_status='DONE', photon_flux_upper_limit='1.53e-06', time_completed='2021-08-31 09:05:21.420113', job_id='172158', GAL2='0.52', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630425921.42', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.52', dlogl='1.26e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.87' WHERE bin_id='1525' AND source_name='4FGL J0922.6+4454' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 09:05:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0292>
Subject: Job 172158: <4FGL_J0922.6+4454_daily_bin1525> in cluster <slac> Done

Job <4FGL_J0922.6+4454_daily_bin1525> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Aug 31 08:55:40 2021
Job was executed on host(s) <bullet0292>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 08:55:41 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:55:41 2021
Terminated at Tue Aug 31 09:05:23 2021
Results reported at Tue Aug 31 09:05:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0922.6+4454_daily_bin1525 140.659 44.9131 634608001 634867201 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 :                                   541.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             203.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   581 sec.
    Turnaround time :                            583 sec.

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

