/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 0 seconds before starting...
Proceeding.

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

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

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

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

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


Performing analysis on: 4FGL_J0923.5+4125_daily_bin1033
RA = 140.895, Dec = 41.4283
tmin = 507081601, tmax = 507340801
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='211138', job_status='RUN', time_executed='2021-08-31 10:57:33.955266', time_epoch_executed='1630432653.96' WHERE source_name='4FGL J0923.5+4125' and cadence='daily' and bin_id='1033'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/211138

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/211138/ft1_4FGL_J0923.5+4125_daily_bin1033.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/211138/ft2_4FGL_J0923.5+4125_daily_bin1033.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/211138/ft1_4FGL_J0923.5+4125_daily_bin1033.fits outfile=/scratch/kocevski/211138/ft1_filteredMKT_4FGL_J0923.5+4125_daily_bin1033.fits ra=140.895 dec=41.4283 rad=12.0 tmin=507081601.0 tmax=507340801.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 7.01
user 4.40
sys 1.88

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/211138/ft2_4FGL_J0923.5+4125_daily_bin1033.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/211138/ft2_4FGL_J0923.5+4125_daily_bin1033.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/211138/ft1_filteredMKT_4FGL_J0923.5+4125_daily_bin1033.fits evtable="EVENTS" outfile="/scratch/kocevski/211138/ft1_filtered_4FGL_J0923.5+4125_daily_bin1033.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 3.07
user 0.33
sys 1.81

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/211138/ft1_filtered_4FGL_J0923.5+4125_daily_bin1033.fits" evtable="EVENTS" scfile=/scratch/kocevski/211138/ft2_4FGL_J0923.5+4125_daily_bin1033.fits sctable="SC_DATA" outfile=/scratch/kocevski/211138/ltcube_507081601_507340801_4FGL_J0923.5+4125_daily_bin1033.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/211138/ft2_4FGL_J0923.5+4125_daily_bin1033.fits
.....................!
real 14.91
user 11.62
sys 2.15

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/211138/ft1_filtered_4FGL_J0923.5+4125_daily_bin1033.fits evtable="EVENTS" scfile=/scratch/kocevski/211138/ft2_4FGL_J0923.5+4125_daily_bin1033.fits sctable="SC_DATA" expcube=/scratch/kocevski/211138/ltcube_507081601_507340801_4FGL_J0923.5+4125_daily_bin1033.fits outfile=/scratch/kocevski/211138/expmap_507081601_507340801_4FGL_J0923.5+4125_daily_bin1033.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/211138/ltcube_507081601_507340801_4FGL_J0923.5+4125_daily_bin1033.fits
.....................!
real 195.69
user 185.38
sys 6.50

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

Setting source of interest to:
4FGL J0923.5+4125 @ 140.895 41.4283

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/211138/ft1_filtered_4FGL_J0923.5+4125_daily_bin1033.fits scfile=/scratch/kocevski/211138/ft2_4FGL_J0923.5+4125_daily_bin1033.fits outfile=/scratch/kocevski/211138/cmap_507081601_507340801_4FGL_J0923.5+4125_daily_bin1033.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.895 yref=41.4283 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 2.37
user 0.38
sys 1.73

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/211138/ft1_filtered_4FGL_J0923.5+4125_daily_bin1033.fits scfile=/scratch/kocevski/211138/ft2_4FGL_J0923.5+4125_daily_bin1033.fits outfile=/scratch/kocevski/211138/cmap_HighResolution_507081601_507340801_4FGL_J0923.5+4125_daily_bin1033.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.895 yref=41.4283 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 2.41
user 0.37
sys 1.78

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/211138/ft1_filtered_4FGL_J0923.5+4125_daily_bin1033.fits evtable="EVENTS" scfile=/scratch/kocevski/211138/ft2_4FGL_J0923.5+4125_daily_bin1033.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/211138/Model_4FGL_J0923.5+4125_daily_bin1033.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/211138/ft1_filtered_4FGL_J0923.5+4125_daily_bin1033.fits.....................!
real 54.16
user 41.26
sys 3.33

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/211138/ft1_filtered_4FGL_J0923.5+4125_daily_bin1033.fits', '/scratch/kocevski/211138/ft2_4FGL_J0923.5+4125_daily_bin1033.fits', expMap='/scratch/kocevski/211138/expmap_507081601_507340801_4FGL_J0923.5+4125_daily_bin1033.fits', expCube='/scratch/kocevski/211138/ltcube_507081601_507340801_4FGL_J0923.5+4125_daily_bin1033.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/211138/Model_4FGL_J0923.5+4125_daily_bin1033.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0923.5+4125'

4FGL J0923.5+4125
   Spectrum: PowerLaw
325    Prefactor:  1.066e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        Index:  2.355e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
327        Scale:  9.251e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/211138/ft1_filtered_4FGL_J0923.5+4125_daily_bin1033.fits
Spacecraft file(s): /scratch/kocevski/211138/ft2_4FGL_J0923.5+4125_daily_bin1033.fits
Exposure map: /scratch/kocevski/211138/expmap_507081601_507340801_4FGL_J0923.5+4125_daily_bin1033.fits
Exposure cube: /scratch/kocevski/211138/ltcube_507081601_507340801_4FGL_J0923.5+4125_daily_bin1033.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/211138/Model_4FGL_J0923.5+4125_daily_bin1033.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) = 4633.70502404

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.5637       1.0000         .10000E-03   10000.    
     5 'norm      '    4.1685       1.0000         .10000E-03   10000.    
     6 'norm      '    5.0464       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.0472       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    23.703       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.4575       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.1443       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.2904       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.4990       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .43342E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.2377       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.0974       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.924       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10662E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.1806       1.0000         .10000E-03   10000.    
    27 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    32.293       1.0000         .10000E-03   10000.    
    31 'norm      '    .10165E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .64762       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.1889       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6710E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4633.700     FROM MIGRAD    STATUS=CONVERGED    875 CALLS     4555 TOTAL
                     EDM=   .68E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.7920       -.20663E-05** at limit **
   2  Prefactor     .10000E-03    1.3715       -.47572E-08** at limit **
   3  Prefactor     .10000E-03    10.755        .81762E-06** at limit **
   4  Prefactor     3.5637        9.9575       -.28440E-06   -.71749E-05
   5  norm          4.1684        6.4390       -.64617E-07    .41117E-06
   6  norm          5.0463        7.7599        .46012E-07   -.25486E-07
   7  Prefactor     2.0478        2.2192        .18186E-07    .59778E-04
   8  Prefactor     .10000E-03    22.417        .70619E-06** at limit **
   9  Prefactor     23.699        53.663       -.70330E-05   -.43260E-06
  10  Prefactor     2.4575        2.4742       -.52010E-07   -.40072E-05
  11  Prefactor     9.1422        28.352       -.32334E-05    .37607E-05
  12  Prefactor     1.2913        3.8193        .88631E-07    .55691E-04
  13  norm          .10000E-03    .99659       -.19815E-08** at limit **
  14  Prefactor     .10000E-03    5.9078       -.93126E-06** at limit **
  15  norm          1.5007        .65473        .55905E-08    .13668E-02
  16  Prefactor     .10000E-03    1.9565       -.28045E-06** at limit **
  17  norm          .10000E-03    3.2004       -.20882E-07** at limit **
  18  Prefactor     3.2385        3.0622       -.12904E-06    .14860E-03
  19  Prefactor     9.0967        11.407       -.22328E-06   -.26252E-04
  20  Prefactor     .10000E-03    4.2510        .49939E-06** at limit **
  21  Prefactor     11.925        19.689        .27236E-06   -.39684E-04
  22  norm          .10000E-03    5.9056       -.88998E-06** at limit **
  23  Prefactor     .10000E-03    13.883       -.47582E-06** at limit **
  24  Prefactor     .10000E-03    5.4684        .21406E-05** at limit **
  25  Prefactor     .10000E-03    47.017       -.20943E-06** at limit **
  26  Prefactor     1.1805        1.4673        .57212E-07   -.28197E-03
  27  norm          .10000E-03    13.735       -.60364E-06** at limit **
  28  Prefactor     .10000E-03    2.4804       -.26234E-07** at limit **
  29  Prefactor     .10000E-03    1.7101       -.85101E-08** at limit **
  30  Prefactor     32.286        36.965       -.81023E-05   -.84715E-05
  31  norm          .10000E-03    5.0909        .12944E-05** at limit **
  32  Normalizat    .64754        .17932        .22862E-05   -.96328E-06
  33  Prefactor     1.1890        .20506       -.40311E-06    .95343E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.56368
  norm       = 4.16836
  norm       = 5.04629
  Prefactor  = 2.04784
  Prefactor  = 0.0001
  Prefactor  = 23.6989
  Prefactor  = 2.45752
  Prefactor  = 9.14219
  Prefactor  = 1.29133
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.50067
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 3.23848
  Prefactor  = 9.09674
  Prefactor  = 0.0001
  Prefactor  = 11.9245
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.18054
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.2859
  norm       = 0.0001
  Normalizat = 0.647539
  Prefactor  = 1.18902
 **********
 **   18 **HESSE 
 **********

 FCN=   4633.700     FROM HESSE     STATUS=OK           691 CALLS     5246 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.8042        .14557E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1.3940        .77831E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.5637        9.9905        .21409E-03   -1.5330    
   5  norm          4.1684        6.4107        .19741E-03   -1.5300    
   6  norm          5.0463        7.7265        .17900E-03   -1.5259    
   7  Prefactor     2.0478        2.2006        .10096E-03   -1.5422    
   8  Prefactor     .10000E-03    22.520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     23.699        53.612        .82275E-04   -1.4734    
  10  Prefactor     2.4575        2.4647        .10445E-03   -1.5394    
  11  Prefactor     9.1422        28.267        .13254E-03   -1.5103    
  12  Prefactor     1.2913        3.6963        .19530E-03   -1.5481    
  13  norm          .10000E-03    1.0015        .66361E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.9118        .16158E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.5007        .57494        .30182E-04   -1.5463    
  16  Prefactor     .10000E-03    8.5139        .15761E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.2307        .11889E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.2385        2.9856        .10039E-03   -1.5348    
  19  Prefactor     9.0967        11.370        .13288E-03   -1.5105    
  20  Prefactor     .10000E-03    4.3361        .13679E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     11.925        19.616        .11601E-03   -1.5017    
  22  norm          .10000E-03    5.9085        .16157E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    13.922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    5.5080        .15479E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    47.378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     1.1805        17.131        .21037E-02   -1.5491    
  27  norm          .10000E-03    13.942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    2.4940        .10468E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    1.7196        .86925E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     32.286        37.140        .70511E-04   -1.4571    
  31  norm          .10000E-03    5.1460        .15060E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .64754        .20958        .25277E-03   -1.0600    
  33  Prefactor     1.1890        .24230        .22943E-03   -.86670    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.48112e-10
Minuit parameter uncertainties:
  1  2.46542e-06
  2  2.20535e-06
  3  3.88871e-06
  4  9.99515
  5  6.41177
  6  7.72801
  7  2.20073
  8  2.91012e-05
  9  53.7216
  10  2.46483
  11  28.3082
  12  3.69697
  13  1.02909e-06
  14  3.83555e-07
  15  0.574943
  16  0.00022896
  17  1.74055e-06
  18  2.98573
  19  11.3729
  20  1.17561e-05
  21  19.6261
  22  2.69083e-07
  23  1.78516e-06
  24  1.91642e-05
  25  4.39158e-05
  26  8.99691
  27  1.33998e-05
  28  3.92399e-06
  29  6.16703e-07
  30  37.1668
  31  4.07297e-05
  32  0.209838
  33  0.242525
Done.

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

Extracting fit parameters...

4FGL J0923.5+4125
   Spectrum: PowerLaw
325    Prefactor:  3.238e+00  2.986e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        Index:  2.355e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
327        Scale:  9.251e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
668    Prefactor:  1.189e+00  2.425e-01  0.000e+00  1.000e+01 ( 1.000e+00)
669        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
670        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
667   Normalization:  6.475e-01  2.098e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.74
Ra Dec: 140.895 41.428
Photon Index (Fixed Index): 2.36 +/- 0.00
Photon Flux (Fixed Index): 4.51e-08 +/- 4.16e-08
Energy Flux (Fixed Index): 1.57e-05 +/- 1.45e-05

TS (Fixed Index): 1.74
Ra Dec: 140.895 41.428
Photon Flux Upper Limit: 1.25e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.66e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/211138/likelihoodResults_507081601_507340801_4FGL_J0923.5+4125_daily_bin1033.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): 0
logL (Free Index) = 4633.5155586
delta logL = 0.184198131905

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4633.50959684
delta logL = 0.190159896312

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4633.510     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      236 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1764        35.375        .69772E-02    .79952E-04
   2  Index         2.7626        3.3443        .14452        .87948E-04
   3  Normalizat    .63005        .54290E-01    .41349E-01    .19013E-04
   4  Prefactor     1.2031        .63536E-01    .51625E-01    .24626E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.17642
  Index      = 2.76263
  Normalizat = 0.630053
  Prefactor  = 1.20311
 **********
 **   18 **HESSE 
 **********

 FCN=   4633.510     FROM HESSE     STATUS=OK            33 CALLS      269 TOTAL
                     EDM=   .93E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1764        3.0237        .74305E-04   -1.5413    
   2  Index         2.7626        .79159        .52690E-02   -.46394    
   3  Normalizat    .63005        .20103        .25591E-03   -1.0672    
   4  Prefactor     1.2031        .23813        .22824E-03   -.86236    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.25654e-11
Minuit parameter uncertainties:
  1  3.02392
  2  0.795781
  3  0.20126
  4  0.23834
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/211138': 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) = 4633.50959684
delta logL = 0.190159897916

Extracting fit parameters...

4FGL J0923.5+4125
   Spectrum: PowerLaw
325    Prefactor:  2.176e+00  3.024e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        Index:  2.763e+00  7.958e-01  0.000e+00  1.000e+01 (-1.000e+00)
327        Scale:  9.251e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
668    Prefactor:  1.203e+00  2.383e-01  0.000e+00  1.000e+01 ( 1.000e+00)
669        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
670        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
667   Normalization:  6.301e-01  2.013e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.16
Ra Dec: 140.895 41.428
Photon Index (Free Index): 2.76 +/- 0.80
Photon Flux (Free Index): 5.77e-08 +/- 4.62e-08
Energy Flux (Free Index): 1.33e-05 +/- 1.16e-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/211138/cmap_HighResolution_507081601_507340801_4FGL_J0923.5+4125_daily_bin1033.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.66e-03', comment='SUCCESS', photon_flux='4.51e-08', energy_flux2='1.33e-05', photon_flux_error='4.16e-08', dlogl='1.90e-01', energy_flux='1.57e-05', photon_flux2='5.77e-08', job_status='DONE', time_completed='2021-08-31 11:12:56.306457', photon_index_error2='0.80', photon_index2='2.76', ts='1.74', fit_tolerance='1e-08', GAL='1.19', photon_index_error='0.00', photon_flux_upper_limit='1.25e-07', energy_flux_error2='1.16e-05', EG='0.65', time_epoch_completed='1630433576.31', return_code='0', job_id='211138', GAL2='1.20', EG2='0.63', return_code2='0', energy_flux_error='1.45e-05', photon_flux_error2='4.62e-08', ts2='2.16', photon_index='2.36' WHERE bin_id='1033' AND source_name='4FGL J0923.5+4125' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 11:12:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0115>
Subject: Job 211138: <4FGL_J0923.5+4125_daily_bin1033> in cluster <slac> Done

Job <4FGL_J0923.5+4125_daily_bin1033> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Aug 31 10:56:24 2021
Job was executed on host(s) <bullet0115>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 10:56:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 31 10:56:25 2021
Terminated at Tue Aug 31 11:12:57 2021
Results reported at Tue Aug 31 11:12:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0923.5+4125_daily_bin1033 140.895 41.4283 507081601 507340801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0923.5+4125 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   919.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             306.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   991 sec.
    Turnaround time :                            993 sec.

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

