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


Performing analysis on: 4FGL_J0922.6+4454_daily_bin1401
RA = 140.659, Dec = 44.9131
tmin = 602467201, tmax = 602726401
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='170490', job_status='RUN', time_executed='2021-08-31 08:54:07.264728', time_epoch_executed='1630425247.26' WHERE source_name='4FGL J0922.6+4454' and cadence='daily' and bin_id='1401'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/170490

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/170490/ft1_4FGL_J0922.6+4454_daily_bin1401.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/170490/ft2_4FGL_J0922.6+4454_daily_bin1401.fits


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

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

Done.
real 3.16
user 2.92
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/170490/ft1_filtered_4FGL_J0922.6+4454_daily_bin1401.fits" evtable="EVENTS" scfile=/scratch/kocevski/170490/ft2_4FGL_J0922.6+4454_daily_bin1401.fits sctable="SC_DATA" outfile=/scratch/kocevski/170490/ltcube_602467201_602726401_4FGL_J0922.6+4454_daily_bin1401.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/170490/ft2_4FGL_J0922.6+4454_daily_bin1401.fits
.....................!
real 12.46
user 12.08
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/170490/ft1_filtered_4FGL_J0922.6+4454_daily_bin1401.fits evtable="EVENTS" scfile=/scratch/kocevski/170490/ft2_4FGL_J0922.6+4454_daily_bin1401.fits sctable="SC_DATA" expcube=/scratch/kocevski/170490/ltcube_602467201_602726401_4FGL_J0922.6+4454_daily_bin1401.fits outfile=/scratch/kocevski/170490/expmap_602467201_602726401_4FGL_J0922.6+4454_daily_bin1401.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/170490/ltcube_602467201_602726401_4FGL_J0922.6+4454_daily_bin1401.fits
.....................!
real 190.32
user 184.81
sys 5.10

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/170490/ft1_filtered_4FGL_J0922.6+4454_daily_bin1401.fits scfile=/scratch/kocevski/170490/ft2_4FGL_J0922.6+4454_daily_bin1401.fits outfile=/scratch/kocevski/170490/cmap_602467201_602726401_4FGL_J0922.6+4454_daily_bin1401.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/170490/ft1_filtered_4FGL_J0922.6+4454_daily_bin1401.fits scfile=/scratch/kocevski/170490/ft2_4FGL_J0922.6+4454_daily_bin1401.fits outfile=/scratch/kocevski/170490/cmap_HighResolution_602467201_602726401_4FGL_J0922.6+4454_daily_bin1401.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.54
user 0.36
sys 0.17

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

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

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 194.259679008

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 193.380494958

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5847       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .13498E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .23956       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .28536E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .30627E-02   1.0000         .10000E-03   10000.    
     6 'norm      '    .17232       1.0000         .10000E-03   10000.    
     7 'norm      '    20.570       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .32791E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12451E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .91898E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .15701       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.9002       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.4106       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .14978E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.5919       1.0000         .10000E-03   10000.    
    16 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .19290E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.3766       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .23966E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .18956       1.0000         .10000E-03   10000.    
    21 'Prefactor '    42.540       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .66144       1.0000         .10000E-03   10000.    
    23 'norm      '    1.9778       1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.7820       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .11234E-01   1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.1921       1.0000         .10000E-03   10000.    
    27 'norm      '    3.1461       1.0000         .10000E-03   10000.    
    28 'norm      '    7.4128       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .52937E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    5.8976       1.0000         .10000E-03   10000.    
    31 'norm      '    8.5586       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .18179       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .84623       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   189.7033     FROM MIGRAD    STATUS=CONVERGED    939 CALLS     1277 TOTAL
                     EDM=   .72E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6286        2.8642        .53889E-02   -.21443    
   2  Prefactor     .10000E-03    53.181        .90904E-02** at limit **
   3  Prefactor     .10000E-03    116.68        .10157E-01** at limit **
   4  Prefactor     .10000E-03    63.331        .91648E-02** at limit **
   5  Prefactor     .10000E-03    27.611        .99029E-02** at limit **
   6  norm          .10000E-03    74.819        .72531E-01** at limit **
   7  norm          14.593        33.916        .22078E-02   -.27195E-02
   8  Prefactor     .10000E-03    35.564        .91858E-02** at limit **
   9  Prefactor     .10000E-03    38.045        .90712E-02** at limit **
  10  Prefactor     .10000E-03    137.01        .94725E-02** at limit **
  11  Prefactor     .10000E-03    233.74        .97796E-02** at limit **
  12  Prefactor     1.9002        1.0396         .0000         .0000    
  13  Prefactor     .10000E-03    .57456E-01   -.26455E-05** at limit **
  14  Prefactor     .10000E-03    .20692        .51211E-06** at limit **
  15  Prefactor     .10002E-03    .38172E-01   -.10089E-04** at limit **
  16  norm          .10000E-03    .20571       -.89202E-08** at limit **
  17  Prefactor     .10000E-03    .20571       -.14192E-06** at limit **
  18  norm          3.3766        1.0114         .0000         .0000    
  19  Prefactor     .10000E-03    .20895       -.39374E-05** at limit **
  20  Prefactor     .10000E-03    .24651       -.10167E-05** at limit **
  21  Prefactor     .10000E-03    .59028E-02    .31168E-05** at limit **
  22  Prefactor     .10000E-03    .35480        .48364E-05** at limit **
  23  norm          1.9778        1.0362         .0000         .0000    
  24  Prefactor     2.7820        1.0171         .0000         .0000    
  25  Prefactor     .10000E-03    .20607       -.13838E-05** at limit **
  26  Prefactor     7.1921        1.0024         .0000         .0000    
  27  norm          .10000E-03    .81606E-01    .13724E-06** at limit **
  28  norm         10000.0        .33906E-01    .13293E-04** at limit **
  29  Prefactor     .10000E-03    .27902       -.19992E-05** at limit **
  30  Prefactor     5.8976        1.0036         .0000         .0000    
  31  norm         10000.0        .29336E-01   -.39969E-05** at limit **
  32  Normalizat    .46424E-01    .29822       -.12520E-03   -.93159E-05
  33  Prefactor     .90595        1.2308        .23039E-04   -.51043E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.62864
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 14.5933
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.9002
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100024
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.37659
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 1.97778
  Prefactor  = 2.78201
  Prefactor  = 0.0001
  Prefactor  = 7.19212
  norm       = 0.0001
  norm       = 10000
  Prefactor  = 0.000100001
  Prefactor  = 5.89762
  norm       = 10000
  Normalizat = 0.0464239
  Prefactor  = 0.905948
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   189.7033     FROM HESSE     STATUS=FAILED        31 CALLS     1308 TOTAL
                     EDM=   .72E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6286        2.8642        .53889E-02   -1.5384    
   2  Prefactor     .10000E-03    53.181        .90904E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    116.68        .10157E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    63.331        .91648E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    27.611        .99029E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    74.819        .72531E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          14.593        33.916        .22078E-02   -1.6472    
   8  Prefactor     .10000E-03    35.564        .91858E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    38.045        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    137.01        .94725E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    233.74        .97796E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     570.65        568.61         .0000       -1.5432    
  13  Prefactor     .10000E-03    .57456E-01   -.26455E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .20692        .51211E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10002E-03    .38172E-01   -.10089E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .20571       -.89202E-08   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    .20571       -.14192E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.3766        1.0114         .0000       -1.5340    
  19  Prefactor     .10000E-03    .20895       -.39374E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    .24651       -.10167E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    .59028E-02    .31168E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    .35480        .48364E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.9778        1.0362         .0000       -1.5427    
  24  Prefactor     2.7820        1.0171         .0000       -1.5374    
  25  Prefactor     .10000E-03    .20607       -.13838E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     7.1921        1.0024         .0000       -1.5172    
  27  norm          .10000E-03    .81606E-01    .13724E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm         10000.0        .33906E-01    .13293E-04    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    .27902       -.19992E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     5.8976        1.0036         .0000       -1.5222    
  31  norm         10000.0        .29336E-01   -.39969E-05    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .46424E-01    .29822       -.12520E-03   -1.4500    
  33  Prefactor     .90595        1.2308        .23039E-04   -.95934    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 7.2243e-11
Minuit parameter uncertainties:
  1  2.86434
  2  1.13927e-08
  3  6.81441e-05
  4  0.000101188
  5  7.38539e-05
  6  0.000107258
  7  33.9611
  8  0.000155115
  9  4.42747e-05
  10  2.80842e-05
  11  0.000312824
  12  1.03966
  13  1.52361e-05
  14  4.44808e-07
  15  6.01296e-05
  16  1.63928e-07
  17  1.3012e-06
  18  1.01141
  19  1.67633e-06
  20  4.29639e-07
  21  8.61603e-07
  22  5.20488e-05
  23  1.03618
  24  1.01714
  25  3.04103e-06
  26  1.00244
  27  2.68023e-06
  28  5.57469e-05
  29  3.59812e-05
  30  1.00364
  31  5.60249e-05
  32  0.209889
  33  1.27201
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 189.70325895

Extracting fit parameters...

4FGL J0922.6+4454
   Spectrum: PowerLaw
324    Prefactor:  1.000e-04  1.301e-06  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.059e-01  1.272e+00  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:  4.642e-02  2.099e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/170490/likelihoodResults_602467201_602726401_4FGL_J0922.6+4454_daily_bin1401.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) = 189.70328418
delta logL = -2.5230284308e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 189.703265407
delta logL = -6.4573032148e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .68962E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8536       1.0000          .0000       10.000    
     3 'Normalizat'    .46416E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90596       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=   189.7033     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      247 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10628E-03    178.02        .90936E-02** at limit **
   2  Index         2.6950        7.9944        .50000        .36156E-05
   3  Normalizat    .46463E-01    .38290E-01    .79977E-02    .19322E-04
   4  Prefactor     .90592        .33368E-01    .18836E-03    .23973E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000106285
  Index      = 2.69504
  Normalizat = 0.0464626
  Prefactor  = 0.905921
 **********
 **   18 **HESSE 
 **********

 FCN=   189.7033     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      276 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10628E-03    1390.0        .97204E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6950        6.3980        .50000       -.47911    
   3  Normalizat    .46463E-01    .11175        .31991E-03   -1.4499    
   4  Prefactor     .90592        .97831E-01    .37672E-04   -.95935    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.28569e-08
Minuit parameter uncertainties:
  1  0.191554
  2  2450.76
  3  0.112402
  4  0.0978499
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/170490': 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) = 189.703258856
delta logL = 9.35160926474e-08

Extracting fit parameters...

4FGL J0922.6+4454
   Spectrum: PowerLaw
324    Prefactor:  1.063e-04  1.916e-01  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  2.695e+00  2.451e+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:  9.059e-01  9.785e-02  0.000e+00  1.000e+01 ( 1.000e+00)
679        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
680        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
677   Normalization:  4.646e-02  1.124e-01  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/170490/cmap_HighResolution_602467201_602726401_4FGL_J0922.6+4454_daily_bin1401.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.54e-01', job_status='DONE', photon_flux_upper_limit='4.46e-06', time_completed='2021-08-31 08:59:52.832258', job_id='170490', GAL2='0.91', fit_tolerance='1e-08', EG2='0.05', EG='0.05', time_epoch_completed='1630425592.83', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.91', dlogl='9.35e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.87' WHERE bin_id='1401' AND source_name='4FGL J0922.6+4454' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 08:59:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0146>
Subject: Job 170490: <4FGL_J0922.6+4454_daily_bin1401> in cluster <slac> Done

Job <4FGL_J0922.6+4454_daily_bin1401> 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) <bullet0146>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 08:50:52 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:52 2021
Terminated at Tue Aug 31 08:59:53 2021
Results reported at Tue Aug 31 08:59:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0922.6+4454_daily_bin1401 140.659 44.9131 602467201 602726401 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 :                                   335.45 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   541 sec.
    Turnaround time :                            543 sec.

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

