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


Performing analysis on: 4FGL_J0923.5+3852_daily_bin1183
RA = 140.885, Dec = 38.8743
tmin = 545961601, tmax = 546220801
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='202392', job_status='RUN', time_executed='2021-08-31 10:34:23.811713', time_epoch_executed='1630431263.81' WHERE source_name='4FGL J0923.5+3852' and cadence='daily' and bin_id='1183'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/202392

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/202392/ft1_4FGL_J0923.5+3852_daily_bin1183.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/202392/ft2_4FGL_J0923.5+3852_daily_bin1183.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/202392/ft1_4FGL_J0923.5+3852_daily_bin1183.fits outfile=/scratch/kocevski/202392/ft1_filteredMKT_4FGL_J0923.5+3852_daily_bin1183.fits ra=140.885 dec=38.8743 rad=12.0 tmin=545961601.0 tmax=546220801.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 5.22
user 3.80
sys 1.36

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/202392/ft1_filtered_4FGL_J0923.5+3852_daily_bin1183.fits" evtable="EVENTS" scfile=/scratch/kocevski/202392/ft2_4FGL_J0923.5+3852_daily_bin1183.fits sctable="SC_DATA" outfile=/scratch/kocevski/202392/ltcube_545961601_546220801_4FGL_J0923.5+3852_daily_bin1183.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/202392/ft2_4FGL_J0923.5+3852_daily_bin1183.fits
.....................!
real 13.21
user 11.55
sys 1.62

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/202392/ft1_filtered_4FGL_J0923.5+3852_daily_bin1183.fits evtable="EVENTS" scfile=/scratch/kocevski/202392/ft2_4FGL_J0923.5+3852_daily_bin1183.fits sctable="SC_DATA" expcube=/scratch/kocevski/202392/ltcube_545961601_546220801_4FGL_J0923.5+3852_daily_bin1183.fits outfile=/scratch/kocevski/202392/expmap_545961601_546220801_4FGL_J0923.5+3852_daily_bin1183.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/202392/ltcube_545961601_546220801_4FGL_J0923.5+3852_daily_bin1183.fits
.....................!
real 193.74
user 187.69
sys 5.57

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/202392/ft1_filtered_4FGL_J0923.5+3852_daily_bin1183.fits scfile=/scratch/kocevski/202392/ft2_4FGL_J0923.5+3852_daily_bin1183.fits outfile=/scratch/kocevski/202392/cmap_545961601_546220801_4FGL_J0923.5+3852_daily_bin1183.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 1.76
user 0.37
sys 1.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/202392/ft1_filtered_4FGL_J0923.5+3852_daily_bin1183.fits scfile=/scratch/kocevski/202392/ft2_4FGL_J0923.5+3852_daily_bin1183.fits outfile=/scratch/kocevski/202392/cmap_HighResolution_545961601_546220801_4FGL_J0923.5+3852_daily_bin1183.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 2.81
user 0.37
sys 1.27

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10039E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.7135       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.5471       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .24548E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    1.7869       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .35813E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    19.890       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12998E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .13043E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    101.99       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.9731       1.0000         .10000E-03   10000.    
    23 'Prefactor '    17.725       1.0000         .10000E-03   10000.    
    24 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.5334       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    17.218       1.0000         .10000E-03   10000.    
    28 'norm      '    .10162E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .65479       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1508       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=   2285.644     FROM MIGRAD    STATUS=CONVERGED    780 CALLS     4642 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.415       -.66694E-07** at limit **
   2  Prefactor     .10000E-03    6.4706       -.20913E-06** at limit **
   3  Prefactor     .10000E-03    26.775        .13314E-06** at limit **
   4  Prefactor     .10000E-03    16.898        .59461E-07** at limit **
   5  norm          .10000E-03    37.898        .74367E-06** at limit **
   6  Prefactor     4.7134        11.950       -.21643E-05    .33933E-03
   7  Prefactor     .10005E-03    585.68        .16071E-04** at limit **
   8  Prefactor     6.5471        6.2925       -.50205E-06    .64166E-03
   9  Prefactor     .10000E-03    82.945        .34530E-05** at limit **
  10  Prefactor     .10000E-03    8.5476       -.36704E-07** at limit **
  11  norm          .10000E-03    .58099       -.24051E-07** at limit **
  12  Prefactor     .10003E-03    281.96       -.49475E-04** at limit **
  13  norm          1.7847        2.0435       -.10292E-05   -.91405E-03
  14  Prefactor     .10001E-03    70.806       -.22538E-04** at limit **
  15  norm          .10000E-03    26.466       -.37929E-06** at limit **
  16  Prefactor     19.882        10.567       -.80156E-06   -.58398E-04
  17  Prefactor     .10000E-03    3.9874        .74579E-06** at limit **
  18  Prefactor     .10000E-03    57.961       -.10590E-05** at limit **
  19  Prefactor     .10000E-03    101.74        .18500E-05** at limit **
  20  norm          .10001E-03    146.23       -.74133E-05** at limit **
  21  Prefactor     102.07        129.68        .16931E-05    .36743E-04
  22  Prefactor     1.8232        2263.1       -.13225E-04    .18928E-04
  23  Prefactor     17.729        14.484        .84252E-07    .55206E-04
  24  norm          .10000E-03    59.706       -.67380E-06** at limit **
  25  Prefactor     3.5368        13.075       -.53186E-06    .59818E-04
  26  Prefactor     .10000E-03    58.495       -.90766E-06** at limit **
  27  Prefactor     17.220        18.973        .24233E-06    .16814E-03
  28  norm          .10000E-03    117.92       -.26351E-05** at limit **
  29  Normalizat    .65418        .29274        .17733E-05    .40515E-03
  30  Prefactor     1.1510        .28838        .66212E-06    .43194E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.71341
  Prefactor  = 0.000100045
  Prefactor  = 6.54709
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100026
  norm       = 1.78473
  Prefactor  = 0.000100011
  norm       = 0.0001
  Prefactor  = 19.8822
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.000100014
  Prefactor  = 102.068
  Prefactor  = 1.8232
  Prefactor  = 17.7295
  norm       = 0.0001
  Prefactor  = 3.53683
  Prefactor  = 0.0001
  Prefactor  = 17.2203
  norm       = 0.000100004
  Normalizat = 0.654178
  Prefactor  = 1.15102
 **********
 **   18 **HESSE 
 **********

 FCN=   2285.644     FROM HESSE     STATUS=OK           582 CALLS     5224 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.5461        .11880E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    26.776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    16.900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    37.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.7134        11.900        .92672E-03   -1.5274    
   7  Prefactor     .10005E-03    590.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.5471        6.2856        .55131E-03   -1.5196    
   9  Prefactor     .10000E-03    83.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.6137        .13630E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .58228        .35585E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10003E-03    555.87        .79809E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.7847        2.0173        .66954E-04   -1.5441    
  14  Prefactor     .10001E-03    106.39        .34259E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    26.577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     19.882        10.383        .89807E-04   -1.4816    
  17  Prefactor     .10000E-03    11.333        .17681E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    57.979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    101.80        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10001E-03    148.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     102.07        129.24        .39813E-04   -1.3684    
  22  Prefactor     1.8232        6170.6        .29516E-02   -1.5438    
  23  Prefactor     17.729        14.466        .95131E-04   -1.4866    
  24  norm          .10000E-03    59.764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     3.5368        12.652        .21236E-03   -1.5332    
  26  Prefactor     .10000E-03    58.571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     17.220        18.400        .96522E-04   -1.4878    
  28  norm          .10000E-03    121.23        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .65418        .34340        .29860E-03   -1.0573    
  30  Prefactor     1.1510        .34313        .24004E-03   -.87852    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1243e-09
Minuit parameter uncertainties:
  1  1.20007e-05
  2  3.55778e-05
  3  1.74843e-05
  4  1.31466e-05
  5  0.000188234
  6  11.9061
  7  0.0104413
  8  6.2862
  9  0.000818899
  10  3.68328e-05
  11  1.31273e-06
  12  0.00763316
  13  2.0174
  14  0.00213535
  15  0.000130581
  16  10.3842
  17  0.000332983
  18  0.000188719
  19  0.000465785
  20  0.0029263
  21  129.596
  22  140.08
  23  14.4687
  24  0.000172163
  25  12.6618
  26  0.000296305
  27  18.4056
  28  0.00136728
  29  0.344527
  30  0.343796
Done.

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

Extracting fit parameters...

4FGL J0923.5+3852
   Spectrum: LogParabola
305         norm:  1.000e-04  1.306e-04  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:  1.151e+00  3.438e-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:  6.542e-01  3.445e-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: 2.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.75e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/202392/likelihoodResults_545961601_546220801_4FGL_J0923.5+3852_daily_bin1183.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) = 2285.64389042
delta logL = -0.000179213294359

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2285.64371308
delta logL = -1.86513761946e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10085E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.4587       1.0000          .0000       5.0000    
     3 'Normalizat'    .65419       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1510       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=   2285.644     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      276 TOTAL
                     EDM=   .94E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    624.18        .17342E-01** at limit **
   2  alpha         2.4594        3.2361        .18336        .13641E-08
   3  Normalizat    .65417        .35261E-01    .29860E-03    .20189E-03
   4  Prefactor     1.1510        .36916E-01    .24004E-03    .33074E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100011
  alpha      = 2.45942
  Normalizat = 0.654173
  Prefactor  = 1.15103
 **********
 **   18 **HESSE 
 **********

 FCN=   2285.644     FROM HESSE     STATUS=OK            23 CALLS      299 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    27.455        .24036E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4594        3.3474        .73342E-02   -.16232E-01
   3  Normalizat    .65417        .32482        .59720E-04   -1.0573    
   4  Prefactor     1.1510        .34050        .48009E-04   -.87852    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.18027e-10
Minuit parameter uncertainties:
  1  0.00110886
  2  543.62
  3  0.325781
  4  0.341145
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/202392': 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) = 2285.64371117
delta logL = 3.79645825888e-08

Extracting fit parameters...

4FGL J0923.5+3852
   Spectrum: LogParabola
305         norm:  1.000e-04  1.109e-03  1.000e-04  1.000e+04 ( 1.000e-12)
306        alpha:  2.459e+00  5.436e+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:  1.151e+00  3.411e-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:  6.542e-01  3.258e-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/202392/cmap_HighResolution_545961601_546220801_4FGL_J0923.5+3852_daily_bin1183.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.75e-05', job_status='DONE', photon_flux_upper_limit='2.16e-07', time_completed='2021-08-31 10:44:06.741096', job_id='202392', GAL2='1.15', fit_tolerance='1e-08', EG2='0.65', EG='0.65', time_epoch_completed='1630431846.74', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='3.80e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='1183' AND source_name='4FGL J0923.5+3852' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 10:44:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0187>
Subject: Job 202392: <4FGL_J0923.5+3852_daily_bin1183> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0923.5+3852_daily_bin1183 140.885 38.8743 545961601 546220801 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 :                                   584.00 sec.
    Max Memory :                                 1019 MB
    Average Memory :                             258.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   811 sec.
    Turnaround time :                            813 sec.

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

