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


Performing analysis on: 4FGL_J0923.5+4125_daily_bin1121
RA = 140.895, Dec = 41.4283
tmin = 529891201, tmax = 530150401
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='211277', job_status='RUN', time_executed='2021-08-31 10:58:50.986476', time_epoch_executed='1630432730.99' WHERE source_name='4FGL J0923.5+4125' and cadence='daily' and bin_id='1121'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/211277

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/211277/ft1_4FGL_J0923.5+4125_daily_bin1121.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/211277/ft2_4FGL_J0923.5+4125_daily_bin1121.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/211277/ft1_4FGL_J0923.5+4125_daily_bin1121.fits outfile=/scratch/kocevski/211277/ft1_filteredMKT_4FGL_J0923.5+4125_daily_bin1121.fits ra=140.895 dec=41.4283 rad=12.0 tmin=529891201.0 tmax=530150401.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.44
user 3.32
sys 0.43

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/211277/ft1_filtered_4FGL_J0923.5+4125_daily_bin1121.fits" evtable="EVENTS" scfile=/scratch/kocevski/211277/ft2_4FGL_J0923.5+4125_daily_bin1121.fits sctable="SC_DATA" outfile=/scratch/kocevski/211277/ltcube_529891201_530150401_4FGL_J0923.5+4125_daily_bin1121.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/211277/ft2_4FGL_J0923.5+4125_daily_bin1121.fits
.....................!
real 12.94
user 11.73
sys 0.61

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/211277/ft1_filtered_4FGL_J0923.5+4125_daily_bin1121.fits evtable="EVENTS" scfile=/scratch/kocevski/211277/ft2_4FGL_J0923.5+4125_daily_bin1121.fits sctable="SC_DATA" expcube=/scratch/kocevski/211277/ltcube_529891201_530150401_4FGL_J0923.5+4125_daily_bin1121.fits outfile=/scratch/kocevski/211277/expmap_529891201_530150401_4FGL_J0923.5+4125_daily_bin1121.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/211277/ltcube_529891201_530150401_4FGL_J0923.5+4125_daily_bin1121.fits
.....................!
real 192.12
user 185.55
sys 4.54

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/211277/ft1_filtered_4FGL_J0923.5+4125_daily_bin1121.fits scfile=/scratch/kocevski/211277/ft2_4FGL_J0923.5+4125_daily_bin1121.fits outfile=/scratch/kocevski/211277/cmap_529891201_530150401_4FGL_J0923.5+4125_daily_bin1121.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.00
user 0.38
sys 0.36

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/211277/ft1_filtered_4FGL_J0923.5+4125_daily_bin1121.fits scfile=/scratch/kocevski/211277/ft2_4FGL_J0923.5+4125_daily_bin1121.fits outfile=/scratch/kocevski/211277/cmap_HighResolution_529891201_530150401_4FGL_J0923.5+4125_daily_bin1121.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 1.48
user 0.38
sys 0.40

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/211277/ft1_filtered_4FGL_J0923.5+4125_daily_bin1121.fits', '/scratch/kocevski/211277/ft2_4FGL_J0923.5+4125_daily_bin1121.fits', expMap='/scratch/kocevski/211277/expmap_529891201_530150401_4FGL_J0923.5+4125_daily_bin1121.fits', expCube='/scratch/kocevski/211277/ltcube_529891201_530150401_4FGL_J0923.5+4125_daily_bin1121.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/211277/Model_4FGL_J0923.5+4125_daily_bin1121.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/211277/ft1_filtered_4FGL_J0923.5+4125_daily_bin1121.fits
Spacecraft file(s): /scratch/kocevski/211277/ft2_4FGL_J0923.5+4125_daily_bin1121.fits
Exposure map: /scratch/kocevski/211277/expmap_529891201_530150401_4FGL_J0923.5+4125_daily_bin1121.fits
Exposure cube: /scratch/kocevski/211277/ltcube_529891201_530150401_4FGL_J0923.5+4125_daily_bin1121.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/211277/Model_4FGL_J0923.5+4125_daily_bin1121.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) = 5256.33245395

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.5066       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.2367       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.8898       1.0000         .10000E-03   10000.    
     6 'norm      '    .11260E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    37.610       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12146E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.0021       1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.168       1.0000         .10000E-03   10000.    
    15 'norm      '    2.0164       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11187E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10374E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.4847       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.7361       1.0000         .10000E-03   10000.    
    21 'Prefactor '    30.403       1.0000         .10000E-03   10000.    
    22 'norm      '    6.3277       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11322E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.3723       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.0745       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10960E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    15.982       1.0000         .10000E-03   10000.    
    31 'norm      '    2.3533       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .81867       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .98969       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=   5256.301     FROM MIGRAD    STATUS=CONVERGED    907 CALLS     4657 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.662        .55733E-05** at limit **
   2  Prefactor     6.5064        3.4678       -.51138E-06    .43662E-04
   3  Prefactor     5.2375        17.030       -.21946E-06   -.46531E-04
   4  Prefactor     .10000E-03    2.0914        .21645E-07** at limit **
   5  norm          1.8892        4.0918        .65311E-06   -.58888E-03
   6  norm          .10000E-03    3.7772       -.41908E-06** at limit **
   7  Prefactor     .10000E-03    1.1868       -.19909E-07** at limit **
   8  Prefactor     .10000E-03    5.8902        .15261E-05** at limit **
   9  Prefactor     .10000E-03    15.276        .13344E-05** at limit **
  10  Prefactor     .10000E-03    2.2031        .92992E-09** at limit **
  11  Prefactor     37.614        40.098        .23099E-05    .18957E-04
  12  Prefactor     .10004E-03    2.1228       -.73984E-06** at limit **
  13  norm          2.0020        2.2099       -.37941E-07   -.15141E-03
  14  Prefactor     22.178        20.712        .17071E-06    .20349E-03
  15  norm          2.0168        .71012       -.59531E-07   -.20710E-02
  16  Prefactor     .10001E-03    2.0157        .67102E-06** at limit **
  17  norm          .10000E-03    6.2313       -.24361E-05** at limit **
  18  Prefactor     2.4859        2.1774       -.54304E-08    .32748E-03
  19  Prefactor     .10000E-03    2.5931       -.26815E-08** at limit **
  20  Prefactor     5.7365        5.1377       -.20303E-06   -.13026E-03
  21  Prefactor     30.406        18.841        .34888E-06    .20239E-04
  22  norm          6.3373        11.805       -.42549E-06    .22170E-04
  23  Prefactor     .10000E-03    73.244       -.24587E-05** at limit **
  24  Prefactor     2.3729        5.5916       -.30451E-06   -.29658E-03
  25  Prefactor     .10000E-03    31.552        .15598E-05** at limit **
  26  Prefactor     .10000E-03    3.1560       -.14777E-07** at limit **
  27  norm          .10000E-03    9.6731       -.20188E-05** at limit **
  28  Prefactor     1.0738        6.0223       -.27790E-05   -.86104E-03
  29  Prefactor     .10000E-03    3.9152       -.45208E-06** at limit **
  30  Prefactor     15.986        29.357        .28346E-05   -.62763E-04
  31  norm          2.3524        8.7426       -.12429E-05   -.25141E-03
  32  Normalizat    .81865        .16796        .10287E-05    .11857E-03
  33  Prefactor     .98975        .18704       -.78164E-06   -.35081E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 6.50638
  Prefactor  = 5.23752
  Prefactor  = 0.0001
  norm       = 1.88922
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.6136
  Prefactor  = 0.000100037
  norm       = 2.00198
  Prefactor  = 22.1782
  norm       = 2.01676
  Prefactor  = 0.00010001
  norm       = 0.0001
  Prefactor  = 2.48589
  Prefactor  = 0.0001
  Prefactor  = 5.73648
  Prefactor  = 30.4063
  norm       = 6.33725
  Prefactor  = 0.000100001
  Prefactor  = 2.37289
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.07377
  Prefactor  = 0.000100001
  Prefactor  = 15.9858
  norm       = 2.35239
  Normalizat = 0.818645
  Prefactor  = 0.989748
 **********
 **   18 **HESSE 
 **********

 FCN=   5256.301     FROM HESSE     STATUS=OK           699 CALLS     5356 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.5064        3.4658        .94540E-04   -1.5198    
   3  Prefactor     5.2375        17.023        .17565E-03   -1.5250    
   4  Prefactor     .10000E-03    2.0921        .10239E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.8892        4.0115        .20529E-03   -1.5433    
   6  norm          .10000E-03    10.208        .27233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.7792        .15244E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.8368        .17103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    15.235        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.2649        .21008E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     37.614        39.638        .65353E-04   -1.4481    
  12  Prefactor     .10004E-03    16.082        .18601E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.0020        2.1958        .11024E-03   -1.5425    
  14  Prefactor     22.178        20.370        .85072E-04   -1.4766    
  15  norm          2.0168        .62582        .30392E-04   -1.5424    
  16  Prefactor     .10001E-03    7.3280        .16894E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    6.1721        .17459E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.4859        2.1395        .92924E-04   -1.5393    
  19  Prefactor     .10000E-03    2.5949        .11400E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.7365        5.1270        .14766E-03   -1.5229    
  21  Prefactor     30.406        18.852        .72665E-04   -1.4605    
  22  norm          6.3373        11.698        .15957E-03   -1.5204    
  23  Prefactor     .10000E-03    73.818        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     2.3729        5.5054        .24492E-03   -1.5400    
  25  Prefactor     .10000E-03    31.700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    3.1596        .12578E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    9.5845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     1.0738        7.7913        .37757E-03   -1.5501    
  29  Prefactor     .10000E-03    10.191        .27702E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     15.986        29.122        .10018E-03   -1.4908    
  31  norm          2.3524        8.8448        .26719E-03   -1.5401    
  32  Normalizat    .81865        .19160        .23687E-03   -.99381    
  33  Prefactor     .98975        .21505        .12497E-02   -.93072    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.19202e-09
Minuit parameter uncertainties:
  1  0.000243998
  2  3.46591
  3  17.0385
  4  1.89999e-07
  5  4.0121
  6  0.000209948
  7  1.18674e-05
  8  4.81329e-05
  9  6.96331e-05
  10  1.23815e-06
  11  39.6657
  12  0.0015397
  13  2.19587
  14  20.3763
  15  0.625824
  16  0.000548727
  17  7.76592e-05
  18  2.13961
  19  3.88973e-07
  20  5.1274
  21  18.8557
  22  11.7019
  23  0.000418595
  24  5.50661
  25  0.000126498
  26  3.03055e-07
  27  0.00010249
  28  5.78562
  29  0.000218766
  30  29.1483
  31  8.84966
  32  0.19176
  33  0.215236
Done.

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

Extracting fit parameters...

4FGL J0923.5+4125
   Spectrum: PowerLaw
325    Prefactor:  2.486e+00  2.140e+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:  9.897e-01  2.152e-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:  8.186e-01  1.918e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.54
Ra Dec: 140.895 41.428
Photon Index (Fixed Index): 2.36 +/- 0.00
Photon Flux (Fixed Index): 3.46e-08 +/- 2.98e-08
Energy Flux (Fixed Index): 1.21e-05 +/- 1.04e-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) = 5255.75626082
delta logL = 0.545015833858

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5255.6892812
delta logL = 0.611995450648

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5798       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4347       1.0000          .0000       10.000    
     3 'Normalizat'    .84565       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97519       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=   5255.689     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      203 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5795        1.5843        .84483E-02   -.14754E-03
   2  Index         1.4347        .46844        .23740       -.54698E-04
   3  Normalizat    .84564        .15924        .44203E-01    .80279E-04
   4  Prefactor     .97519        .18378        .45956E-01   -.85246E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.57952
  Index      = 1.43467
  Normalizat = 0.84564
  Prefactor  = 0.97519
 **********
 **   18 **HESSE 
 **********

 FCN=   5255.689     FROM HESSE     STATUS=OK            33 CALLS      236 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5795        2.1278        .86567E-04   -1.5457    
   2  Index         1.4347        .70594        .91954E-02   -.79386    
   3  Normalizat    .84564        .18285        .23366E-03   -.98397    
   4  Prefactor     .97519        .21112        .25174E-03   -.93561    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20361e-10
Minuit parameter uncertainties:
  1  2.12791
  2  0.710796
  3  0.18298
  4  0.211302
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/211277': 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) = 5255.68928119
delta logL = 0.611995462988

Extracting fit parameters...

4FGL J0923.5+4125
   Spectrum: PowerLaw
325    Prefactor:  1.580e+00  2.128e+00  1.000e-04  1.000e+04 ( 1.000e-12)
326        Index:  1.435e+00  7.108e-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:  9.752e-01  2.113e-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:  8.456e-01  1.830e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.77
Ra Dec: 140.895 41.428
Photon Index (Free Index): 1.43 +/- 0.71
Photon Flux (Free Index): 8.40e-09 +/- 1.25e-08
Energy Flux (Free Index): 3.31e-05 +/- 5.28e-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/211277/cmap_HighResolution_529891201_530150401_4FGL_J0923.5+4125_daily_bin1121.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.46e-08', energy_flux2='3.31e-05', photon_flux_error='2.98e-08', dlogl='6.12e-01', energy_flux='1.21e-05', photon_flux2='8.40e-09', job_status='DONE', time_completed='2021-08-31 11:13:06.169477', photon_index_error2='0.71', photon_index2='1.43', ts='7.54', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='5.28e-05', EG='0.82', time_epoch_completed='1630433586.17', return_code='0', job_id='211277', GAL2='0.98', EG2='0.85', return_code2='0', energy_flux_error='1.04e-05', photon_flux_error2='1.25e-08', ts2='8.77', photon_index='2.36' WHERE bin_id='1121' AND source_name='4FGL J0923.5+4125' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 11:13:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 211277: <4FGL_J0923.5+4125_daily_bin1121> in cluster <slac> Done

Job <4FGL_J0923.5+4125_daily_bin1121> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Aug 31 10:56:36 2021
Job was executed on host(s) <bullet0268>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 10:56:38 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:38 2021
Terminated at Tue Aug 31 11:13:07 2021
Results reported at Tue Aug 31 11:13:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0923.5+4125_daily_bin1121 140.895 41.4283 529891201 530150401 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 :                                   829.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             322.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   988 sec.
    Turnaround time :                            991 sec.

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

