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


Performing analysis on: 4FGL_J0923.5+3852_daily_bin1406
RA = 140.885, Dec = 38.8743
tmin = 603763201, tmax = 604022401
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='202609', job_status='RUN', time_executed='2021-08-31 10:35:03.327209', time_epoch_executed='1630431303.33' WHERE source_name='4FGL J0923.5+3852' and cadence='daily' and bin_id='1406'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/202609

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/202609/ft1_4FGL_J0923.5+3852_daily_bin1406.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/202609/ft2_4FGL_J0923.5+3852_daily_bin1406.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/202609/ft1_4FGL_J0923.5+3852_daily_bin1406.fits outfile=/scratch/kocevski/202609/ft1_filteredMKT_4FGL_J0923.5+3852_daily_bin1406.fits ra=140.885 dec=38.8743 rad=12.0 tmin=603763201.0 tmax=604022401.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.63
user 3.99
sys 0.59

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/202609/ft2_4FGL_J0923.5+3852_daily_bin1406.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/202609/ft2_4FGL_J0923.5+3852_daily_bin1406.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/202609/ft1_filteredMKT_4FGL_J0923.5+3852_daily_bin1406.fits evtable="EVENTS" outfile="/scratch/kocevski/202609/ft1_filtered_4FGL_J0923.5+3852_daily_bin1406.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.92
user 0.32
sys 0.52

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/202609/ft1_filtered_4FGL_J0923.5+3852_daily_bin1406.fits" evtable="EVENTS" scfile=/scratch/kocevski/202609/ft2_4FGL_J0923.5+3852_daily_bin1406.fits sctable="SC_DATA" outfile=/scratch/kocevski/202609/ltcube_603763201_604022401_4FGL_J0923.5+3852_daily_bin1406.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/202609/ft2_4FGL_J0923.5+3852_daily_bin1406.fits
.....................!
real 12.56
user 11.68
sys 0.74

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/202609/ft1_filtered_4FGL_J0923.5+3852_daily_bin1406.fits evtable="EVENTS" scfile=/scratch/kocevski/202609/ft2_4FGL_J0923.5+3852_daily_bin1406.fits sctable="SC_DATA" expcube=/scratch/kocevski/202609/ltcube_603763201_604022401_4FGL_J0923.5+3852_daily_bin1406.fits outfile=/scratch/kocevski/202609/expmap_603763201_604022401_4FGL_J0923.5+3852_daily_bin1406.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/202609/ltcube_603763201_604022401_4FGL_J0923.5+3852_daily_bin1406.fits
.....................!
real 190.85
user 185.48
sys 4.51

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

Setting source of interest to:
4FGL J0923.5+3852 @ 140.885 38.8743

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/202609/ft1_filtered_4FGL_J0923.5+3852_daily_bin1406.fits scfile=/scratch/kocevski/202609/ft2_4FGL_J0923.5+3852_daily_bin1406.fits outfile=/scratch/kocevski/202609/cmap_603763201_604022401_4FGL_J0923.5+3852_daily_bin1406.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.885 yref=38.8743 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.92
user 0.35
sys 0.54

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/202609/ft1_filtered_4FGL_J0923.5+3852_daily_bin1406.fits scfile=/scratch/kocevski/202609/ft2_4FGL_J0923.5+3852_daily_bin1406.fits outfile=/scratch/kocevski/202609/cmap_HighResolution_603763201_604022401_4FGL_J0923.5+3852_daily_bin1406.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.885 yref=38.8743 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.92
user 0.38
sys 0.52

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/202609/ft1_filtered_4FGL_J0923.5+3852_daily_bin1406.fits evtable="EVENTS" scfile=/scratch/kocevski/202609/ft2_4FGL_J0923.5+3852_daily_bin1406.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/202609/Model_4FGL_J0923.5+3852_daily_bin1406.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/202609/ft1_filtered_4FGL_J0923.5+3852_daily_bin1406.fits.....................!
real 35.68
user 33.55
sys 1.72

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/202609/ft1_filtered_4FGL_J0923.5+3852_daily_bin1406.fits', '/scratch/kocevski/202609/ft2_4FGL_J0923.5+3852_daily_bin1406.fits', expMap='/scratch/kocevski/202609/expmap_603763201_604022401_4FGL_J0923.5+3852_daily_bin1406.fits', expCube='/scratch/kocevski/202609/ltcube_603763201_604022401_4FGL_J0923.5+3852_daily_bin1406.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/202609/Model_4FGL_J0923.5+3852_daily_bin1406.xml', optimizer='MINUIT')

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

4FGL J0923.5+3852
   Spectrum: LogParabola
305         norm:  3.377e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
306        alpha:  2.609e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
307         beta:  2.149e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
308           Eb:  5.637e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/202609/ft1_filtered_4FGL_J0923.5+3852_daily_bin1406.fits
Spacecraft file(s): /scratch/kocevski/202609/ft2_4FGL_J0923.5+3852_daily_bin1406.fits
Exposure map: /scratch/kocevski/202609/expmap_603763201_604022401_4FGL_J0923.5+3852_daily_bin1406.fits
Exposure cube: /scratch/kocevski/202609/ltcube_603763201_604022401_4FGL_J0923.5+3852_daily_bin1406.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/202609/Model_4FGL_J0923.5+3852_daily_bin1406.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) = 3346.5830074

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.2088       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    24.126       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.9391       1.0000         .10000E-03   10000.    
     7 'Prefactor '    58.250       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .68766       1.0000         .10000E-03   10000.    
    11 'norm      '    1.3852       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .15436       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.8572       1.0000         .10000E-03   10000.    
    15 'norm      '    32.998       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .63107       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13284E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.670       1.0000         .10000E-03   10000.    
    20 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    27.902       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .13853E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.9935       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    13.360       1.0000         .10000E-03   10000.    
    28 'norm      '    11.657       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .75788       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .77922       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3346.550     FROM MIGRAD    STATUS=CONVERGED    139 CALLS     3320 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.3786        .24629E-05** at limit **
   2  Prefactor     9.2076        4.4924       -.62692E-06   -.17499E-03
   3  Prefactor     .10000E-03    29.012        .15018E-04** at limit **
   4  Prefactor     .10001E-03    9.2225        .90084E-05** at limit **
   5  norm          24.128        1.0108       -.88905E-07   -.31068E-05
   6  Prefactor     2.9393        3.1738        .16797E-06    .30349E-03
   7  Prefactor     58.280        9.3920        .46829E-05   -.69796E-02
   8  Prefactor     .10000E-03    2.7953        .80879E-06** at limit **
   9  Prefactor     .10000E-03    22.205       -.54711E-05** at limit **
  10  Prefactor     .68803        2.6120        .38249E-05   -.14467E-03
  11  norm          1.3850        2.3407        .13249E-05   -.12708E-03
  12  Prefactor     .10003E-03    9.5600       -.22033E-04** at limit **
  13  norm          .15482        .54256        .50766E-05    .41766E-03
  14  Prefactor     5.8534        2.3277       -.52052E-05   -.61128E-02
  15  norm          32.992        1.3243        .18453E-06   -.92925E-03
  16  Prefactor     .63300        2.2704        .14072E-05   -.44633E-04
  17  Prefactor     .10000E-03    1.6083       -.31558E-05** at limit **
  18  Prefactor     .10000E-03    114.49        .80258E-04** at limit **
  19  Prefactor     17.868        32.242        .18838E-04    .53697E-03
  20  norm          .10000E-03    3.9828       -.12387E-05** at limit **
  21  Prefactor     .10000E-03    4.0289       -.33829E-05** at limit **
  22  Prefactor     27.898        1.4389        .97725E-06   -.78280E-03
  23  Prefactor     .10000E-03    3.9370        .19415E-05** at limit **
  24  norm          .10001E-03    46.467       -.18431E-04** at limit **
  25  Prefactor     2.9938        3.9868        .99093E-06   -.17930E-03
  26  Prefactor     .10001E-03    10.893        .91213E-05** at limit **
  27  Prefactor     13.360        1.8986        .35850E-06   -.49455E-03
  28  norm          11.657        1.0298        .20768E-06    .17243E-04
  29  Normalizat    .75782        .22240       -.42612E-05    .10461E-04
  30  Prefactor     .77926        .24143        .96623E-06   -.71439E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 9.20758
  Prefactor  = 0.000100005
  Prefactor  = 0.00010001
  norm       = 24.1276
  Prefactor  = 2.93932
  Prefactor  = 58.2802
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.688028
  norm       = 1.38502
  Prefactor  = 0.000100035
  norm       = 0.154822
  Prefactor  = 5.85339
  norm       = 32.9922
  Prefactor  = 0.632998
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 17.8675
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 27.8976
  Prefactor  = 0.0001
  norm       = 0.000100006
  Prefactor  = 2.99377
  Prefactor  = 0.000100008
  Prefactor  = 13.3597
  norm       = 11.6566
  Normalizat = 0.757821
  Prefactor  = 0.779264
 **********
 **   18 **HESSE 
 **********

 FCN=   3346.550     FROM HESSE     STATUS=OK           652 CALLS     3972 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.3787        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     9.2076        4.5020        .33017E-02   -1.5101    
   3  Prefactor     .10000E-03    28.991        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    9.3904        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          24.128        12.161        .20388E-02   -1.4725    
   6  Prefactor     2.9393        3.2742        .59230E-02   -1.5365    
   7  Prefactor     58.280        107.66        .13141E-02   -1.4180    
   8  Prefactor     .10000E-03    2.7384        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    22.222        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .68803        2.7181        .12014E-01   -1.5542    
  11  norm          1.3850        2.3741        .92387E-02   -1.5473    
  12  Prefactor     .10003E-03    10.194        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .15482        1.0806        .15869E-01   -1.5629    
  14  Prefactor     5.8534        5.9018        .41484E-02   -1.5224    
  15  norm          32.992        13.383        .17439E-02   -1.4559    
  16  Prefactor     .63300        2.3933        .11795E-01   -1.5549    
  17  Prefactor     .10000E-03    1.6033        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    14.198        .90893E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     17.868        34.977        .23820E-02   -1.4862    
  20  norm          .10000E-03    7.7881        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.7837        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     27.898        33.246        .18961E-02   -1.4651    
  23  Prefactor     .10000E-03    3.9084        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10001E-03    45.345        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     2.9938        5.4676        .58656E-02   -1.5362    
  26  Prefactor     .10001E-03    11.044        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     13.360        8.9358        .27397E-02   -1.4977    
  28  norm          11.657        10.907        .29334E-02   -1.5025    
  29  Normalizat    .75782        .20135        .43058E-01   -1.0165    
  30  Prefactor     .77926        .21312        .43446E-01   -1.0050    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06252e-06
Minuit parameter uncertainties:
  1  7.00739e-05
  2  4.50214
  3  0.000755769
  4  0.000601371
  5  12.1625
  6  3.27436
  7  108.023
  8  6.53532e-06
  9  0.000334654
  10  2.71863
  11  2.3743
  12  0.00118886
  13  0.817788
  14  5.90242
  15  13.3837
  16  2.39368
  17  2.23927e-05
  18  0.000330459
  19  35.0172
  20  0.000213696
  21  4.27263e-05
  22  33.268
  23  1.39138e-05
  24  0.00104947
  25  5.46855
  26  0.000582312
  27  8.93669
  28  10.9085
  29  0.201551
  30  0.213345
Done.

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

Extracting fit parameters...

4FGL J0923.5+3852
   Spectrum: LogParabola
305         norm:  3.299e+01  1.338e+01  1.000e-04  1.000e+04 ( 1.000e-12)
306        alpha:  2.609e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
307         beta:  2.149e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
308           Eb:  5.637e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
635    Prefactor:  7.793e-01  2.133e-01  0.000e+00  1.000e+01 ( 1.000e+00)
636        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
637        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
634   Normalization:  7.578e-01  2.016e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 18.53
Ra Dec: 140.885 38.874
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 1.35e-07 +/- 5.47e-08
Energy Flux (Fixed Index): 3.59e-05 +/- 1.46e-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) = 3345.88224346
delta logL = 0.667454742669

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3345.67875654
delta logL = 0.870941660383

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    43.937       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8564       1.0000          .0000       5.0000    
     3 'Normalizat'    .80650       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74019       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6380E+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=   3345.679     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      244 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          43.930        18.031        .30241E-03    .51164E-04
   2  alpha         1.8565        .49914        .10618E-01    .11497E-04
   3  Normalizat    .80661        .21514        .22258E-03    .26472E-03
   4  Prefactor     .74012        .23723        .25779E-03    .25679E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 43.93
  alpha      = 1.85648
  Normalizat = 0.806608
  Prefactor  = 0.740115
 **********
 **   18 **HESSE 
 **********

 FCN=   3345.679     FROM HESSE     STATUS=OK            25 CALLS      269 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          43.930        18.075        .12097E-04   -1.4381    
   2  alpha         1.8565        .50022        .42471E-03   -.26034    
   3  Normalizat    .80661        .21533        .44517E-04   -.99824    
   4  Prefactor     .74012        .23739        .51558E-04   -1.0197    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39054e-10
Minuit parameter uncertainties:
  1  18.077
  2  0.503866
  3  0.215556
  4  0.237717
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/202609': 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) = 3345.67875632
delta logL = 0.870941878095

Extracting fit parameters...

4FGL J0923.5+3852
   Spectrum: LogParabola
305         norm:  4.393e+01  1.808e+01  1.000e-04  1.000e+04 ( 1.000e-12)
306        alpha:  1.856e+00  5.039e-01  0.000e+00  5.000e+00 ( 1.000e+00)
307         beta:  2.149e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
308           Eb:  5.637e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
635    Prefactor:  7.401e-01  2.377e-01  0.000e+00  1.000e+01 ( 1.000e+00)
636        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
637        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
634   Normalization:  8.066e-01  2.156e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 20.08
Ra Dec: 140.885 38.874
Photon Index (Free Index): 1.86 +/- 0.50
Photon Flux (Free Index): 9.59e-08 +/- 5.17e-08
Energy Flux (Free Index): 4.98e-05 +/- 2.40e-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/202609/cmap_HighResolution_603763201_604022401_4FGL_J0923.5+3852_daily_bin1406.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.35e-07', energy_flux2='4.98e-05', photon_flux_error='5.47e-08', dlogl='8.71e-01', energy_flux='3.59e-05', photon_flux2='9.59e-08', job_status='DONE', time_completed='2021-08-31 10:46:14.520550', photon_index_error2='0.50', photon_index2='1.86', ts='18.53', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', energy_flux_error2='2.40e-05', EG='0.76', time_epoch_completed='1630431974.52', return_code='0', job_id='202609', GAL2='0.74', EG2='0.81', return_code2='0', energy_flux_error='1.46e-05', photon_flux_error2='5.17e-08', ts2='20.08', photon_index='2.61' WHERE bin_id='1406' AND source_name='4FGL J0923.5+3852' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 10:46:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 202609: <4FGL_J0923.5+3852_daily_bin1406> in cluster <slac> Done

Job <4FGL_J0923.5+3852_daily_bin1406> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Aug 31 10:30:52 2021
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 10:30:53 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:30:53 2021
Terminated at Tue Aug 31 10:46:15 2021
Results reported at Tue Aug 31 10:46:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0923.5+3852_daily_bin1406 140.885 38.8743 603763201 604022401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0923.5+3852 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   567.04 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             204.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   921 sec.
    Turnaround time :                            923 sec.

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

