/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 5 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 = 7403
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0923.5+3852_daily_bin248
RA = 140.885, Dec = 38.8743
tmin = 303609601, tmax = 303868801
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='191658', job_status='RUN', time_executed='2021-08-31 10:00:56.760832', time_epoch_executed='1630429256.76' WHERE source_name='4FGL J0923.5+3852' and cadence='daily' and bin_id='248'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/191658

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/191658/ft1_4FGL_J0923.5+3852_daily_bin248.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/191658/ft2_4FGL_J0923.5+3852_daily_bin248.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/191658/ft1_4FGL_J0923.5+3852_daily_bin248.fits outfile=/scratch/kocevski/191658/ft1_filteredMKT_4FGL_J0923.5+3852_daily_bin248.fits ra=140.885 dec=38.8743 rad=12.0 tmin=303609601.0 tmax=303868801.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.42
user 3.14
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/191658/ft2_4FGL_J0923.5+3852_daily_bin248.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/191658/ft1_filteredMKT_4FGL_J0923.5+3852_daily_bin248.fits evtable="EVENTS" outfile="/scratch/kocevski/191658/ft1_filtered_4FGL_J0923.5+3852_daily_bin248.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.51
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/191658/ft1_filtered_4FGL_J0923.5+3852_daily_bin248.fits" evtable="EVENTS" scfile=/scratch/kocevski/191658/ft2_4FGL_J0923.5+3852_daily_bin248.fits sctable="SC_DATA" outfile=/scratch/kocevski/191658/ltcube_303609601_303868801_4FGL_J0923.5+3852_daily_bin248.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/191658/ft2_4FGL_J0923.5+3852_daily_bin248.fits
.....................!
real 11.99
user 11.48
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/191658/ft1_filtered_4FGL_J0923.5+3852_daily_bin248.fits evtable="EVENTS" scfile=/scratch/kocevski/191658/ft2_4FGL_J0923.5+3852_daily_bin248.fits sctable="SC_DATA" expcube=/scratch/kocevski/191658/ltcube_303609601_303868801_4FGL_J0923.5+3852_daily_bin248.fits outfile=/scratch/kocevski/191658/expmap_303609601_303868801_4FGL_J0923.5+3852_daily_bin248.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/191658/ltcube_303609601_303868801_4FGL_J0923.5+3852_daily_bin248.fits
.....................!
real 194.37
user 186.63
sys 6.52

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/191658/ft1_filtered_4FGL_J0923.5+3852_daily_bin248.fits scfile=/scratch/kocevski/191658/ft2_4FGL_J0923.5+3852_daily_bin248.fits outfile=/scratch/kocevski/191658/cmap_303609601_303868801_4FGL_J0923.5+3852_daily_bin248.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.54
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/191658/ft1_filtered_4FGL_J0923.5+3852_daily_bin248.fits scfile=/scratch/kocevski/191658/ft2_4FGL_J0923.5+3852_daily_bin248.fits outfile=/scratch/kocevski/191658/cmap_HighResolution_303609601_303868801_4FGL_J0923.5+3852_daily_bin248.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.54
user 0.38
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/191658/ft1_filtered_4FGL_J0923.5+3852_daily_bin248.fits', '/scratch/kocevski/191658/ft2_4FGL_J0923.5+3852_daily_bin248.fits', expMap='/scratch/kocevski/191658/expmap_303609601_303868801_4FGL_J0923.5+3852_daily_bin248.fits', expCube='/scratch/kocevski/191658/ltcube_303609601_303868801_4FGL_J0923.5+3852_daily_bin248.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/191658/Model_4FGL_J0923.5+3852_daily_bin248.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/191658/ft1_filtered_4FGL_J0923.5+3852_daily_bin248.fits
Spacecraft file(s): /scratch/kocevski/191658/ft2_4FGL_J0923.5+3852_daily_bin248.fits
Exposure map: /scratch/kocevski/191658/expmap_303609601_303868801_4FGL_J0923.5+3852_daily_bin248.fits
Exposure cube: /scratch/kocevski/191658/ltcube_303609601_303868801_4FGL_J0923.5+3852_daily_bin248.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/191658/Model_4FGL_J0923.5+3852_daily_bin248.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) = 6232.89335

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11092E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.6750       1.0000         .10000E-03   10000.    
     5 'norm      '    .11152E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.8801       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.2674       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.4108       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.5129       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.0424       1.0000         .10000E-03   10000.    
    15 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.6689       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .67498E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    13.562       1.0000         .10000E-03   10000.    
    25 'Prefactor '    9.2955       1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.3179       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .19218E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    3.5198       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1791       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .93006       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.

 FCN=   6232.667     FROM MIGRAD    STATUS=CONVERGED    805 CALLS     3434 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 15.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.0633        .42002E-07** at limit **
   2  Prefactor     .10000E-03    .82479       -.15968E-07** at limit **
   3  Prefactor     .10000E-03    36.993       -.24142E-06** at limit **
   4  Prefactor     5.6760        5.7983       -.12046E-09   -.38988E-04
   5  norm          .10001E-03    9.2087        .27167E-05** at limit **
   6  Prefactor     2.8801        2.8122        .25696E-06    .45481E-03
   7  Prefactor     9.1020        91.852       -.10309E-04    .43923E-04
   8  Prefactor     1.4109        3.9680       -.47364E-06   -.94208E-05
   9  Prefactor     .10000E-03    143.35       -.55077E-06** at limit **
  10  Prefactor     .10000E-03    1.3792       -.25041E-07** at limit **
  11  norm          .10000E-03    .96412       -.43475E-07** at limit **
  12  Prefactor     .10000E-03    11.140        .44002E-07** at limit **
  13  norm          1.5128        .75284       -.10592E-07   -.44932E-03
  14  Prefactor     5.0425        4.4781       -.21625E-07    .13268E-03
  15  norm          .10000E-03    4.9719       -.97447E-07** at limit **
  16  Prefactor     .10000E-03    .64220       -.18006E-08** at limit **
  17  Prefactor     .10000E-03    2.6825       -.65315E-07** at limit **
  18  Prefactor     3.6689        7.6786        .62057E-07    .87175E-04
  19  Prefactor     .10000E-03    12.775       -.35812E-07** at limit **
  20  norm          .10000E-03    7.2667        .16088E-07** at limit **
  21  Prefactor     .10000E-03    10.619        .71581E-07** at limit **
  22  Prefactor     .10006E-03    431.21        .10132E-03** at limit **
  23  Prefactor     .10000E-03    3.7408       -.76086E-07** at limit **
  24  norm          13.561        11.726        .11214E-06   -.12912E-04
  25  Prefactor     9.2935        5.4409        .64197E-06    .16990E-02
  26  Prefactor     7.3148        17.216       -.51714E-06    .63367E-04
  27  Prefactor     .10001E-03    4.5236       -.22184E-05** at limit **
  28  norm          3.5196        6.9439       -.20807E-05    .19489E-03
  29  Normalizat    1.1791        .17458        .47595E-06    .94247E-04
  30  Prefactor     .93006        .18465        .67264E-07    .11883E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.676
  norm       = 0.000100007
  Prefactor  = 2.8801
  Prefactor  = 9.10196
  Prefactor  = 1.41089
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.51284
  Prefactor  = 5.0425
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.66888
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100061
  Prefactor  = 0.0001
  norm       = 13.561
  Prefactor  = 9.29353
  Prefactor  = 7.3148
  Prefactor  = 0.000100013
  norm       = 3.51957
  Normalizat = 1.17915
  Prefactor  = 0.93006
 **********
 **   18 **HESSE 
 **********

 FCN=   6232.667     FROM HESSE     STATUS=OK           594 CALLS     4028 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.0725        .17350E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    .82767        .70014E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    38.421        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.6760        5.7997        .16862E-03   -1.5231    
   5  norm          .10001E-03    9.5431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.8801        2.7975        .12237E-03   -1.5369    
   7  Prefactor     9.1020        91.613        .13165E-03   -1.5104    
   8  Prefactor     1.4109        3.9412        .25024E-03   -1.5470    
   9  Prefactor     .10000E-03    145.87        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.4017        .90471E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.0020        .15132E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.5128        .81918        .34736E-04   -1.5462    
  14  Prefactor     5.0425        4.9208        .10996E-03   -1.5259    
  15  norm          .10000E-03    5.0137        .17186E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .64577        .61755E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    2.7239        .12621E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.6689        7.6612        .21088E-03   -1.5325    
  19  Prefactor     .10000E-03    12.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    7.2814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    10.646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10006E-03    23.507        .11272       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.7548        .14911E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          13.561        11.740        .10876E-03   -1.4971    
  25  Prefactor     9.2935        5.0056        .12396E-03   -1.5098    
  26  Prefactor     7.3148        17.206        .14827E-03   -1.5167    
  27  Prefactor     .10001E-03    10.107        .29637E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          3.5196        6.9434        .10774E-02   -1.5333    
  29  Normalizat    1.1791        .20602        .22953E-03   -.87250    
  30  Prefactor     .93006        .21698        .28092E-03   -.95098    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.1543e-09
Minuit parameter uncertainties:
  1  8.04362e-06
  2  1.35295e-06
  3  0.000122831
  4  5.80023
  5  0.000526414
  6  2.79766
  7  57.8681
  8  3.94188
  9  0.000242968
  10  3.78369e-06
  11  2.78234e-06
  12  2.18586e-05
  13  0.819182
  14  4.92114
  15  6.98974e-06
  16  6.22885e-07
  17  9.93016e-06
  18  7.6632
  19  4.06122e-06
  20  4.54881e-06
  21  4.10328e-06
  22  0.00239654
  23  1.48399e-05
  24  11.7417
  25  5.0058
  26  17.2178
  27  0.000723568
  28  6.94503
  29  0.206166
  30  0.21718
Done.

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

Extracting fit parameters...

4FGL J0923.5+3852
   Spectrum: LogParabola
305         norm:  1.000e-04  6.990e-06  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:  9.301e-01  2.172e-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:  1.179e+00  2.062e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 140.885 38.874
Photon Flux Upper Limit: 6.70e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.78e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/191658/likelihoodResults_303609601_303868801_4FGL_J0923.5+3852_daily_bin248.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) = 6232.66784548
delta logL = -0.000950182954512

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6232.66689535
delta logL = -5.38402673556e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6029       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1791       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93010       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6232.667     FROM MIGRAD    STATUS=FAILED        93 CALLS      238 TOTAL
                     EDM=   .47E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    992.58        .17212E-02** at limit **
   2  alpha         2.4223        2.8454        .16478       -.37600E-07
   3  Normalizat    1.1791        .95642E-01    .22953E-03    .41803E-04
   4  Prefactor     .93006        .10584        .28092E-03    .37839E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6232.667     FROM SIMPLEX   STATUS=UNCHANGED    189 CALLS      427 TOTAL
                     EDM=   .82E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    992.58        .34351E-03** at limit **
   2  alpha         2.4223        2.8454        .30456E-06   -.37600E-07
   3  Normalizat    1.1791        .95642E-01    .30978E-07    .41803E-04
   4  Prefactor     .93006        .10584        .13885E-07    .37839E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6232.667     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      455 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.1293        .34423E-03** at limit **
   2  alpha         2.4245        2.7104        .65913E-02    .29666E-07
   3  Normalizat    1.1791        .19265        .91813E-05    .42843E-04
   4  Prefactor     .93006        .21319        .11237E-04    .38446E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.42449
  Normalizat = 1.17915
  Prefactor  = 0.930059
 **********
 **   18 **HESSE 
 **********

 FCN=   6232.667     FROM HESSE     STATUS=OK            23 CALLS      478 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.1285        .68846E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4245        3.1239        .13183E-02   -.30209E-01
   3  Normalizat    1.1791        .19276        .18363E-05   -.87250    
   4  Prefactor     .93006        .21330        .22474E-05   -.95099    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.43627e-11
Minuit parameter uncertainties:
  1  3.46377e-05
  2  283.933
  3  0.192876
  4  0.213492
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/191658': 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) = 6232.66689508
delta logL = 2.20327819989e-07

Extracting fit parameters...

4FGL J0923.5+3852
   Spectrum: LogParabola
305         norm:  1.000e-04  3.464e-05  1.000e-04  1.000e+04 ( 1.000e-12)
306        alpha:  2.424e+00  2.839e+02  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:  9.301e-01  2.135e-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:  1.179e+00  1.929e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 140.885 38.874

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/191658/cmap_HighResolution_303609601_303868801_4FGL_J0923.5+3852_daily_bin248.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.78e-05', job_status='DONE', photon_flux_upper_limit='6.70e-08', time_completed='2021-08-31 10:16:07.518727', job_id='191658', GAL2='0.93', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1630430167.52', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='2.20e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='248' AND source_name='4FGL J0923.5+3852' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 10:16:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0130>
Subject: Job 191658: <4FGL_J0923.5+3852_daily_bin248> in cluster <slac> Done

Job <4FGL_J0923.5+3852_daily_bin248> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Aug 31 10:00:39 2021
Job was executed on host(s) <bullet0130>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 10:00:40 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:00:40 2021
Terminated at Tue Aug 31 10:16:08 2021
Results reported at Tue Aug 31 10:16:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0923.5+3852_daily_bin248 140.885 38.8743 303609601 303868801 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 :                                   903.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             329.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   927 sec.
    Turnaround time :                            929 sec.

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

