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


Performing analysis on: 4FGL_J0922.6+4454_daily_bin1394
RA = 140.659, Dec = 44.9131
tmin = 600652801, tmax = 600912001
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='170478', job_status='RUN', time_executed='2021-08-31 08:51:25.911832', time_epoch_executed='1630425085.91' WHERE source_name='4FGL J0922.6+4454' and cadence='daily' and bin_id='1394'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/170478

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/170478/ft1_4FGL_J0922.6+4454_daily_bin1394.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/170478/ft2_4FGL_J0922.6+4454_daily_bin1394.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/170478/ft1_4FGL_J0922.6+4454_daily_bin1394.fits outfile=/scratch/kocevski/170478/ft1_filteredMKT_4FGL_J0922.6+4454_daily_bin1394.fits ra=140.659 dec=44.9131 rad=12.0 tmin=600652801.0 tmax=600912001.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.76
user 3.41
sys 1.31

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/170478/ft1_filtered_4FGL_J0922.6+4454_daily_bin1394.fits" evtable="EVENTS" scfile=/scratch/kocevski/170478/ft2_4FGL_J0922.6+4454_daily_bin1394.fits sctable="SC_DATA" outfile=/scratch/kocevski/170478/ltcube_600652801_600912001_4FGL_J0922.6+4454_daily_bin1394.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/170478/ft2_4FGL_J0922.6+4454_daily_bin1394.fits
.....................!
real 13.40
user 11.74
sys 1.57

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/170478/ft1_filtered_4FGL_J0922.6+4454_daily_bin1394.fits evtable="EVENTS" scfile=/scratch/kocevski/170478/ft2_4FGL_J0922.6+4454_daily_bin1394.fits sctable="SC_DATA" expcube=/scratch/kocevski/170478/ltcube_600652801_600912001_4FGL_J0922.6+4454_daily_bin1394.fits outfile=/scratch/kocevski/170478/expmap_600652801_600912001_4FGL_J0922.6+4454_daily_bin1394.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/170478/ltcube_600652801_600912001_4FGL_J0922.6+4454_daily_bin1394.fits
.....................!
real 191.60
user 185.34
sys 5.77

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/170478/ft1_filtered_4FGL_J0922.6+4454_daily_bin1394.fits scfile=/scratch/kocevski/170478/ft2_4FGL_J0922.6+4454_daily_bin1394.fits outfile=/scratch/kocevski/170478/cmap_600652801_600912001_4FGL_J0922.6+4454_daily_bin1394.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 1.68
user 0.37
sys 1.26

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/170478/ft1_filtered_4FGL_J0922.6+4454_daily_bin1394.fits scfile=/scratch/kocevski/170478/ft2_4FGL_J0922.6+4454_daily_bin1394.fits outfile=/scratch/kocevski/170478/cmap_HighResolution_600652801_600912001_4FGL_J0922.6+4454_daily_bin1394.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 1.71
user 0.39
sys 1.24

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0513       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.2220       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.9015       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.188       1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.5419       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.3097       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.2634       1.0000         .10000E-03   10000.    
    13 'Prefactor '    40.907       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10262E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .13045E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.3579       1.0000         .10000E-03   10000.    
    18 'norm      '    3.4298       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12542       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10287E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .48118E-01   1.0000         .10000E-03   10000.    
    28 'norm      '    2.5737       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    1.8692       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.1269       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .91701       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=   5933.801     FROM MIGRAD    STATUS=CONVERGED    892 CALLS     3953 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0513        .76526        .12047E-01    .22313E-03
   2  Prefactor     4.2207        14.687        .49029E-02   -.83028E-04
   3  Prefactor     7.8987        20.042        .35661E-02    .92282E-04
   4  Prefactor     .10000E-03    4.9792        .90712E-02** at limit **
   5  Prefactor     10.187        7.4490        .31383E-02   -.21267E-03
   6  norm          .10000E-03    1.5691        .90712E-02** at limit **
   7  norm          4.5411        4.8148        .47224E-02    .27104E-03
   8  Prefactor     6.3092        7.9669        .39950E-02   -.86659E-04
   9  Prefactor     .10000E-03    1.7596        .90712E-02** at limit **
  10  Prefactor     .10000E-03    10.109        .90712E-02** at limit **
  11  Prefactor     .10003E-03    22.302        .90712E-02** at limit **
  12  Prefactor     4.2631        3.7353        .48783E-02   -.41819E-03
  13  Prefactor     40.907        36.109        .15668E-02   -.38111E-03
  14  Prefactor     .10000E-03    1.9002        .90712E-02** at limit **
  15  Prefactor     .10000E-03    15.348        .90712E-02** at limit **
  16  norm          .10000E-03    .39432        .15088E-01** at limit **
  17  Prefactor     5.3582        3.4973        .43405E-02    .20464E-03
  18  norm          3.4427        8.7526        .54603E-02   -.27347E-03
  19  Prefactor     .94303E-01    1.2470        .57357E-01    .42651E-03
  20  Prefactor     .10000E-03    5.1655        .90712E-02** at limit **
  21  Prefactor     .10000E-03    2.0652        .90712E-02** at limit **
  22  Prefactor     .10000E-03    4.5780        .90712E-02** at limit **
  23  norm          .10000E-03    7.5087        .90712E-02** at limit **
  24  Prefactor     .10000E-03    71.792        .90712E-02** at limit **
  25  Prefactor     .10000E-03    2.3674        .90712E-02** at limit **
  26  Prefactor     .10001E-03    14.801        .90712E-02** at limit **
  27  norm          .48441E-01    .43697        .16804E-01    .21028E-02
  28  norm          2.5706        9.8241        .63604E-02    .29145E-03
  29  Prefactor     .10000E-03    3.4176        .90712E-02** at limit **
  30  Prefactor     .10003E-03    23.443        .90712E-02** at limit **
  31  norm          1.8691        2.4613        .76164E-02    .53083E-03
  32  Normalizat    1.1270        .17283        .36997E-01    .26165E-04
  33  Prefactor     .91707        .18751        .45222E-01    .25252E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.05134
  Prefactor  = 4.2207
  Prefactor  = 7.89869
  Prefactor  = 0.000100003
  Prefactor  = 10.1873
  norm       = 0.0001
  norm       = 4.54114
  Prefactor  = 6.30925
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100027
  Prefactor  = 4.26313
  Prefactor  = 40.9067
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 5.35818
  norm       = 3.4427
  Prefactor  = 0.0943028
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  norm       = 0.048441
  norm       = 2.57059
  Prefactor  = 0.0001
  Prefactor  = 0.000100029
  norm       = 1.8691
  Normalizat = 1.12697
  Prefactor  = 0.917071
 **********
 **   18 **HESSE 
 **********

 FCN=   5933.801     FROM HESSE     STATUS=OK           695 CALLS     4648 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0513        .74828        .54285E-04   -1.5503    
   2  Prefactor     4.2207        14.619        .19612E-03   -1.5297    
   3  Prefactor     7.8987        20.008        .14264E-03   -1.5146    
   4  Prefactor     .10000E-03    5.0155        .16780E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.187        7.4467        .12553E-03   -1.5070    
   6  norm          .10000E-03    1.5725        .94225E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.5411        4.8063        .16720E-03   -1.5282    
   8  Prefactor     6.3092        7.9643        .15980E-03   -1.5206    
   9  Prefactor     .10000E-03    1.8348        .19926E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    10.149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10003E-03    22.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.2631        3.7386        .13551E-03   -1.5295    
  13  Prefactor     40.907        36.077        .62674E-04   -1.4428    
  14  Prefactor     .10000E-03    1.9319        .10340E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    15.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .68844        .80226E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.3582        3.0219        .93306E-04   -1.5245    
  18  norm          3.4427        8.7422        .21841E-03   -1.5337    
  19  Prefactor     .94303E-01    15.079        .15678E-02   -1.5647    
  20  Prefactor     .10000E-03    5.2141        .17096E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.1103        .10799E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.5813        .16097E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    7.5201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    73.114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    2.3825        .11571E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10001E-03    14.811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .48441E-01    1.2265        .97977E-03   -1.5664    
  28  norm          2.5706        9.8084        .25442E-03   -1.5387    
  29  Prefactor     .10000E-03    3.5206        .27790E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10003E-03    23.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          1.8691        2.4422        .13384E-03   -1.5435    
  32  Normalizat    1.1270        .19667        .22414E-03   -.88891    
  33  Prefactor     .91707        .21386        .27247E-03   -.95547    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.99365e-08
Minuit parameter uncertainties:
  1  0.748288
  2  14.6317
  3  20.025
  4  0.000225421
  5  7.44739
  6  2.80214e-07
  7  4.80669
  8  7.96559
  9  2.76778e-06
  10  0.000114052
  11  0.001544
  12  3.73878
  13  36.0962
  14  3.52173e-06
  15  0.000366438
  16  2.33816e-07
  17  3.02195
  18  8.74547
  19  2.38426
  20  0.000177905
  21  9.44417e-07
  22  5.66783e-05
  23  1.21797e-06
  24  0.000247467
  25  1.04703e-06
  26  0.000651613
  27  0.487011
  28  9.81454
  29  1.67864e-06
  30  0.00165546
  31  2.44232
  32  0.196796
  33  0.214059
Done.

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

Extracting fit parameters...

4FGL J0922.6+4454
   Spectrum: PowerLaw
324    Prefactor:  5.358e+00  3.022e+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

GAL_V02
   Spectrum: PowerLaw
678    Prefactor:  9.171e-01  2.141e-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.127e+00  1.968e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.24
Ra Dec: 140.659 44.913
Photon Index (Fixed Index): 2.87 +/- 0.00
Photon Flux (Fixed Index): 8.94e-08 +/- 5.04e-08
Energy Flux (Fixed Index): 1.92e-05 +/- 1.08e-05

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5933.73635604
delta logL = 0.0647334473333

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5933.73245526
delta logL = 0.0686342267145

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.0602       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1218       1.0000          .0000       10.000    
     3 'Normalizat'    1.1145       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92787       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=   5933.732     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      232 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0602        37.689        .50026E-02    .40820E-03
   2  Index         3.1218        3.2856        .13099        .11562E-03
   3  Normalizat    1.1145        .68553E-01    .37438E-01    .54324E-05
   4  Prefactor     .92787        .70534E-01    .45359E-01    .12838E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.06016
  Index      = 3.12177
  Normalizat = 1.11452
  Prefactor  = 0.927873
 **********
 **   18 **HESSE 
 **********

 FCN=   5933.732     FROM HESSE     STATUS=OK            33 CALLS      265 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0602        4.8676        .78815E-04   -1.5305    
   2  Index         3.1218        .82973        .50415E-02   -.38509    
   3  Normalizat    1.1145        .19594        .22518E-03   -.89287    
   4  Prefactor     .92787        .21306        .27109E-03   -.95174    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.51888e-09
Minuit parameter uncertainties:
  1  4.8681
  2  0.834234
  3  0.196073
  4  0.213254
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/170478': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5933.73245526
delta logL = 0.068634227302

Extracting fit parameters...

4FGL J0922.6+4454
   Spectrum: PowerLaw
324    Prefactor:  4.060e+00  4.868e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  3.122e+00  8.342e-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:  9.279e-01  2.133e-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.115e+00  1.961e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.39
Ra Dec: 140.659 44.913
Photon Index (Free Index): 3.12 +/- 0.83
Photon Flux (Free Index): 9.89e-08 +/- 5.74e-08
Energy Flux (Free Index): 1.87e-05 +/- 1.05e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/170478/cmap_HighResolution_600652801_600912001_4FGL_J0922.6+4454_daily_bin1394.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.94e-08', energy_flux2='1.87e-05', photon_flux_error='5.04e-08', dlogl='6.86e-02', energy_flux='1.92e-05', photon_flux2='9.89e-08', job_status='DONE', time_completed='2021-08-31 09:05:19.589368', photon_index_error2='0.83', photon_index2='3.12', ts='5.24', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='1.05e-05', EG='1.13', time_epoch_completed='1630425919.59', return_code='0', job_id='170478', GAL2='0.93', EG2='1.11', return_code2='0', energy_flux_error='1.08e-05', photon_flux_error2='5.74e-08', ts2='5.39', photon_index='2.87' WHERE bin_id='1394' AND source_name='4FGL J0922.6+4454' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 09:05:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 170478: <4FGL_J0922.6+4454_daily_bin1394> in cluster <slac> Done

Job <4FGL_J0922.6+4454_daily_bin1394> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Tue Aug 31 08:50:50 2021
Job was executed on host(s) <bullet0216>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 08:50:51 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:50:51 2021
Terminated at Tue Aug 31 09:05:20 2021
Results reported at Tue Aug 31 09:05:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0922.6+4454_daily_bin1394 140.659 44.9131 600652801 600912001 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 :                                   845.49 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             316.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            870 sec.

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

