/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 200 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7451
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0922.6+4454_daily_bin1229
RA = 140.659, Dec = 44.9131
tmin = 557884801, tmax = 558144001
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository Job = True

LAT data Source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='167966', job_status='RUN', time_executed='2021-08-31 08:48:59.461474', time_epoch_executed='1630424939.46' WHERE source_name='4FGL J0922.6+4454' and cadence='daily' and bin_id='1229'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/167966

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/167966/ft1_4FGL_J0922.6+4454_daily_bin1229.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/167966/ft2_4FGL_J0922.6+4454_daily_bin1229.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/167966/ft1_4FGL_J0922.6+4454_daily_bin1229.fits outfile=/scratch/kocevski/167966/ft1_filteredMKT_4FGL_J0922.6+4454_daily_bin1229.fits ra=140.659 dec=44.9131 rad=12.0 tmin=557884801.0 tmax=558144001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.06
user 3.78
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/167966/ft2_4FGL_J0922.6+4454_daily_bin1229.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/167966/ft1_filteredMKT_4FGL_J0922.6+4454_daily_bin1229.fits evtable="EVENTS" outfile="/scratch/kocevski/167966/ft1_filtered_4FGL_J0922.6+4454_daily_bin1229.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/167966/ft1_filtered_4FGL_J0922.6+4454_daily_bin1229.fits" evtable="EVENTS" scfile=/scratch/kocevski/167966/ft2_4FGL_J0922.6+4454_daily_bin1229.fits sctable="SC_DATA" outfile=/scratch/kocevski/167966/ltcube_557884801_558144001_4FGL_J0922.6+4454_daily_bin1229.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /scratch/kocevski/167966/ft2_4FGL_J0922.6+4454_daily_bin1229.fits
.....................!
real 11.94
user 11.58
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/167966/ft1_filtered_4FGL_J0922.6+4454_daily_bin1229.fits evtable="EVENTS" scfile=/scratch/kocevski/167966/ft2_4FGL_J0922.6+4454_daily_bin1229.fits sctable="SC_DATA" expcube=/scratch/kocevski/167966/ltcube_557884801_558144001_4FGL_J0922.6+4454_daily_bin1229.fits outfile=/scratch/kocevski/167966/expmap_557884801_558144001_4FGL_J0922.6+4454_daily_bin1229.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/167966/ltcube_557884801_558144001_4FGL_J0922.6+4454_daily_bin1229.fits
.....................!
real 189.98
user 185.28
sys 4.13

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/167966/ft1_filtered_4FGL_J0922.6+4454_daily_bin1229.fits scfile=/scratch/kocevski/167966/ft2_4FGL_J0922.6+4454_daily_bin1229.fits outfile=/scratch/kocevski/167966/cmap_557884801_558144001_4FGL_J0922.6+4454_daily_bin1229.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=140.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.54
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/167966/ft1_filtered_4FGL_J0922.6+4454_daily_bin1229.fits scfile=/scratch/kocevski/167966/ft2_4FGL_J0922.6+4454_daily_bin1229.fits outfile=/scratch/kocevski/167966/cmap_HighResolution_557884801_558144001_4FGL_J0922.6+4454_daily_bin1229.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=140.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.53
user 0.39
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/167966/ft1_filtered_4FGL_J0922.6+4454_daily_bin1229.fits evtable="EVENTS" scfile=/scratch/kocevski/167966/ft2_4FGL_J0922.6+4454_daily_bin1229.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/167966/Model_4FGL_J0922.6+4454_daily_bin1229.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/167966/ft1_filtered_4FGL_J0922.6+4454_daily_bin1229.fits...!
real 13.66
user 12.52
sys 1.05

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/167966/ft1_filtered_4FGL_J0922.6+4454_daily_bin1229.fits', '/scratch/kocevski/167966/ft2_4FGL_J0922.6+4454_daily_bin1229.fits', expMap='/scratch/kocevski/167966/expmap_557884801_558144001_4FGL_J0922.6+4454_daily_bin1229.fits', expCube='/scratch/kocevski/167966/ltcube_557884801_558144001_4FGL_J0922.6+4454_daily_bin1229.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/167966/Model_4FGL_J0922.6+4454_daily_bin1229.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/167966/ft1_filtered_4FGL_J0922.6+4454_daily_bin1229.fits
Spacecraft file(s): /scratch/kocevski/167966/ft2_4FGL_J0922.6+4454_daily_bin1229.fits
Exposure map: /scratch/kocevski/167966/expmap_557884801_558144001_4FGL_J0922.6+4454_daily_bin1229.fits
Exposure cube: /scratch/kocevski/167966/ltcube_557884801_558144001_4FGL_J0922.6+4454_daily_bin1229.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/167966/Model_4FGL_J0922.6+4454_daily_bin1229.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .17682E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .15242E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10306E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .40010E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .20859E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13379E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .68440E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .17092E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .14424E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .87457E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13011E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11420E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    906.24       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .34465E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    9999.9       1.0000         .10000E-03   10000.    
    21 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    22 'Prefactor '    9999.0       1.0000         .10000E-03   10000.    
    23 'norm      '    .32182E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .12385E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    9999.7       1.0000         .10000E-03   10000.    
    26 'Prefactor '    9999.9       1.0000         .10000E-03   10000.    
    27 'norm      '    9999.9       1.0000         .10000E-03   10000.    
    28 'norm      '    9999.9       1.0000         .10000E-03   10000.    
    29 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    30 'Prefactor '    9999.9       1.0000         .10000E-03   10000.    
    31 'norm      '    9997.4       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .10002E-01   1.0000         .10000E-01   10.000    
    33 'Prefactor '    .43449E-08   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=   21.86516     FROM MIGRAD    STATUS=CONVERGED    809 CALLS     4516 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    8.2105       -.33272E-07** at limit **
   2  Prefactor     .10000E-03    148.68       -.42666E-04** at limit **
   3  Prefactor     .10000E-03    270.29        .58530E-05** at limit **
   4  Prefactor     .10000E-03    123.46        .33893E-04** at limit **
   5  Prefactor     .10000E-03    271.73        .15670E-04** at limit **
   6  norm          .10000E-03    115.18       -.32951E-04** at limit **
   7  norm          .10000E-03    183.52        .68118E-05** at limit **
   8  Prefactor     .10000E-03    6256.8       -.39762E-03** at limit **
   9  Prefactor     .10000E-03    65.858       -.87285E-06** at limit **
  10  Prefactor     .10000E-03    6322.4       -.74196E-03** at limit **
  11  Prefactor     .10000E-03    7193.9       -.31242E-03** at limit **
  12  Prefactor     .10014E-03    262.88       -.50353E-04** at limit **
  13  Prefactor     .10001E-03    1314.0        .30022E-03** at limit **
  14  Prefactor     .10000E-03    76.011        .32614E-05** at limit **
  15  Prefactor     .10012E-03    1166.1        .86506E-03** at limit **
  16  norm          .10000E-03    23.529       -.28909E-06** at limit **
  17  Prefactor     .10000E-03    130.19        .44453E-04** at limit **
  18  norm          908.37        849.79        .72587E-03   -.10897E-04
  19  Prefactor     .10002E-03    129.36       -.71829E-04** at limit **
  20  Prefactor    10000.0        5813.3        .72034E-02** at limit **
  21  Prefactor    10000.0        8507.6        .17667E-02** at limit **
  22  Prefactor    10000.0        5011.4        .19224E-01** at limit **
  23  norm          .10000E-03    7623.2       -.13649E-03** at limit **
  24  Prefactor     .11028E-03    6382.9       -.19322E-02** at limit **
  25  Prefactor    10000.0        7149.3        .10096E-01** at limit **
  26  Prefactor    10000.0        8116.9        .42649E-02** at limit **
  27  norm         10000.0        9121.0        .44941E-02** at limit **
  28  norm         10000.0        5614.4        .68408E-02** at limit **
  29  Prefactor    10000.0        8060.5        .25847E-02** at limit **
  30  Prefactor    10000.0        5920.4        .66208E-02** at limit **
  31  norm         10000.0        5811.6        .32145E-01** at limit **
  32  Normalizat    .10000E-01    .87953       -.13672E-04** at limit **
  33  Prefactor     .42185E-10    .69961       -.39030E-05** at limit **
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100145
  Prefactor  = 0.000100006
  Prefactor  = 0.000100001
  Prefactor  = 0.000100123
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 908.37
  Prefactor  = 0.000100016
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 0.000100005
  Prefactor  = 0.00011028
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 10000
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 10000
  Normalizat = 0.01
  Prefactor  = 4.21846e-11
 **********
 **   18 **HESSE 
 **********

 FCN=   21.86516     FROM HESSE     STATUS=OK           661 CALLS     5177 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    8.2105        .13235E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    148.68        .56454E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    270.28        .76274E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    123.46        .51422E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    271.73        .76479E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    115.18        .49661E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    183.51        .62757E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6256.8        .18254E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    65.856        .37520E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6322.3        .18719E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7193.9        .20365E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10014E-03    262.53        .75214E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    1313.6        .17131E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    75.998        .40316E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10012E-03    1163.4        .16091E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    23.528        .22411E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    130.17        .52810E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          908.37        849.70        .69668E-04   -.95849    
  19  Prefactor     .10002E-03    129.32        .52644E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor    10000.0        5808.8        .19423E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor    10000.0        8503.1        .18275E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor    10000.0        5011.8        .24883E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    7622.7        .21360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .11028E-03    6439.6        .18142E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor    10000.0        7144.4        .20776E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor    10000.0        8081.2        .18556E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm         10000.0        9117.5        .18630E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm         10000.0        5610.1        .19286E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor    10000.0        8055.5        .18234E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor    10000.0        5915.1        .19215E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm         10000.0        5811.8        .12536E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .10000E-01    .87898        .13912E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     .42185E-10    .69934        .12363E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.55914e-09
Minuit parameter uncertainties:
  1  1.61358e-06
  2  2.84689e-05
  3  4.48192e-05
  4  1.94325e-05
  5  8.44876e-06
  6  1.26953e-05
  7  1.42798e-05
  8  0.000156113
  9  5.31215e-05
  10  0.000485192
  11  0.000602345
  12  0.0123747
  13  0.00590289
  14  0.000660265
  15  0.0243728
  16  0.000135272
  17  0.000619807
  18  862.598
  19  0.00290122
  20  0.0553709
  21  0.0673601
  22  0.306348
  23  0.0111963
  24  1.65133
  25  0.0989493
  26  0.0540188
  27  0.00409932
  28  0.0509776
  29  0.04152
  30  0.047043
  31  0.607726
  32  4.11196e-05
  33  1.09938e-05
Done.

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

Extracting fit parameters...

4FGL J0922.6+4454
   Spectrum: PowerLaw
324    Prefactor:  1.000e-04  6.198e-04  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.218e-11  1.099e-05  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  4.112e-05  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.29e-05 ph cm-2 s-1
Energy Flux Upper Limit: 1.03e+00 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/167966/likelihoodResults_557884801_558144001_4FGL_J0922.6+4454_daily_bin1229.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 21.8651968241
delta logL = -3.6271436052e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 21.8651609802
delta logL = -4.27495738364e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10549E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.4187       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60346E-08   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=   21.86516     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      253 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11581E-03    508.00        .38219E-02** at limit **
   2  Index         3.1895        6.5704        .50000        .38956E-05
   3  Normalizat    .10000E-01    .10668E-01    .13909E-02** at limit **
   4  Prefactor     .36138E-11    .84346E-02    .12362E-02** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000115809
  Index      = 3.18951
  Normalizat = 0.01
  Prefactor  = 3.61378e-12
 **********
 **   18 **HESSE 
 **********

 FCN=   21.86516     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      282 TOTAL
                     EDM=   .87E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11581E-03    6456.0        .43485E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.1895        5.9588        .50000       -.37052    
   3  Normalizat    .10000E-01    .71372E-01    .27819E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .36138E-11    .56456E-01    .24723E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.68734e-08
Minuit parameter uncertainties:
  1  0.45329
  2  2732.41
  3  1.9236e-06
  4  9.04189e-07
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/167966': 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) = 21.8651608231
delta logL = -2.7039971684e-07

Extracting fit parameters...

4FGL J0922.6+4454
   Spectrum: PowerLaw
324    Prefactor:  1.158e-04  4.533e-01  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  3.190e+00  2.732e+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:  3.614e-12  9.042e-07  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.924e-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/167966/cmap_HighResolution_557884801_558144001_4FGL_J0922.6+4454_daily_bin1229.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.03e+00', job_status='DONE', photon_flux_upper_limit='1.29e-05', time_completed='2021-08-31 08:54:47.399024', job_id='167966', GAL2='0.00', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630425287.4', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.00', dlogl='-2.70e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.87' WHERE bin_id='1229' AND source_name='4FGL J0922.6+4454' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 08:54:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0144>
Subject: Job 167966: <4FGL_J0922.6+4454_daily_bin1229> in cluster <slac> Done

Job <4FGL_J0922.6+4454_daily_bin1229> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Aug 31 08:45:27 2021
Job was executed on host(s) <bullet0144>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 08:45:28 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:45:28 2021
Terminated at Tue Aug 31 08:54:48 2021
Results reported at Tue Aug 31 08:54:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0922.6+4454_daily_bin1229 140.659 44.9131 557884801 558144001 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 :                                   342.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             232.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   559 sec.
    Turnaround time :                            561 sec.

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

