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


Performing analysis on: 4FGL_J0923.5+3852_daily_bin1200
RA = 140.885, Dec = 38.8743
tmin = 550368001, tmax = 550627201
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='201186', job_status='RUN', time_executed='2021-08-31 10:27:48.596233', time_epoch_executed='1630430868.6' WHERE source_name='4FGL J0923.5+3852' and cadence='daily' and bin_id='1200'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/201186

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/201186/ft1_4FGL_J0923.5+3852_daily_bin1200.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/201186/ft2_4FGL_J0923.5+3852_daily_bin1200.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/201186/ft1_4FGL_J0923.5+3852_daily_bin1200.fits outfile=/scratch/kocevski/201186/ft1_filteredMKT_4FGL_J0923.5+3852_daily_bin1200.fits ra=140.885 dec=38.8743 rad=12.0 tmin=550368001.0 tmax=550627201.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 2.99
user 2.78
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/201186/ft2_4FGL_J0923.5+3852_daily_bin1200.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/201186/ft1_filteredMKT_4FGL_J0923.5+3852_daily_bin1200.fits evtable="EVENTS" outfile="/scratch/kocevski/201186/ft1_filtered_4FGL_J0923.5+3852_daily_bin1200.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.40
user 0.26
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/201186/ft1_filtered_4FGL_J0923.5+3852_daily_bin1200.fits" evtable="EVENTS" scfile=/scratch/kocevski/201186/ft2_4FGL_J0923.5+3852_daily_bin1200.fits sctable="SC_DATA" outfile=/scratch/kocevski/201186/ltcube_550368001_550627201_4FGL_J0923.5+3852_daily_bin1200.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/201186/ft2_4FGL_J0923.5+3852_daily_bin1200.fits
.....................!
real 8.67
user 8.39
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/201186/ft1_filtered_4FGL_J0923.5+3852_daily_bin1200.fits evtable="EVENTS" scfile=/scratch/kocevski/201186/ft2_4FGL_J0923.5+3852_daily_bin1200.fits sctable="SC_DATA" expcube=/scratch/kocevski/201186/ltcube_550368001_550627201_4FGL_J0923.5+3852_daily_bin1200.fits outfile=/scratch/kocevski/201186/expmap_550368001_550627201_4FGL_J0923.5+3852_daily_bin1200.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/201186/ltcube_550368001_550627201_4FGL_J0923.5+3852_daily_bin1200.fits
.....................!
real 141.79
user 137.98
sys 3.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/201186/ft1_filtered_4FGL_J0923.5+3852_daily_bin1200.fits scfile=/scratch/kocevski/201186/ft2_4FGL_J0923.5+3852_daily_bin1200.fits outfile=/scratch/kocevski/201186/cmap_550368001_550627201_4FGL_J0923.5+3852_daily_bin1200.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.45
user 0.30
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/201186/ft1_filtered_4FGL_J0923.5+3852_daily_bin1200.fits scfile=/scratch/kocevski/201186/ft2_4FGL_J0923.5+3852_daily_bin1200.fits outfile=/scratch/kocevski/201186/cmap_HighResolution_550368001_550627201_4FGL_J0923.5+3852_daily_bin1200.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.44
user 0.31
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3562       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11826E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10260E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    33.843       1.0000         .10000E-03   10000.    
     5 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .14091E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .59525E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    42.321       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10185E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .11886E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    41.016       1.0000         .10000E-03   10000.    
    13 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10153E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10156E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10453E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .15210E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .56721E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10322E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    6.0154       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10261E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10824E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .73835       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1428       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=   1877.092     FROM MIGRAD    STATUS=CONVERGED   1387 CALLS     5094 TOTAL
                     EDM=   .98E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3406        481.55        .37531E-03    .64831E-04
   2  Prefactor     .10019E-03    54.146        .32931E-02** at limit **
   3  Prefactor     .10000E-03    36.295        .18142E-02** at limit **
   4  Prefactor     33.841        41.615        .68883E-04    .33512E-04
   5  norm          .10000E-03    45.913        .18142E-02** at limit **
   6  Prefactor     .10000E-03    5.7840        .10178E-02** at limit **
   7  Prefactor     .10002E-03    681.93        .20519E-02** at limit **
   8  Prefactor     .50003E-01    153.80        .17630E-02   -.26365E-03
   9  Prefactor     42.276        268.73        .61621E-04    .17001E-04
  10  Prefactor     .10000E-03    8.0468        .11945E-02** at limit **
  11  norm          .10001E-03    12.605        .11946E-02** at limit **
  12  Prefactor     41.167        95.910        .62590E-04    .32195E-04
  13  norm          .10000E-03    .81762        .37980E-03** at limit **
  14  Prefactor     .10000E-03    6.2548        .10566E-02** at limit **
  15  norm          .10000E-03    11.707        .14463E-02** at limit **
  16  Prefactor     .10000E-03    4.4804        .89168E-03** at limit **
  17  Prefactor     .10000E-03    9.5393        .19660E-02** at limit **
  18  Prefactor     .10000E-03    71.662        .18142E-02** at limit **
  19  Prefactor     .10000E-03    101.76        .18142E-02** at limit **
  20  norm          .10002E-03    219.28        .18142E-02** at limit **
  21  Prefactor     .10000E-03    41.912        .18142E-02** at limit **
  22  Prefactor     .10021E-03    785.58        .76001E-02** at limit **
  23  Prefactor     .10000E-03    6.4141        .10709E-02** at limit **
  24  norm          .10000E-03    26.200        .18142E-02** at limit **
  25  Prefactor     6.0038        8.2672        .13487E-03   -.48442E-03
  26  Prefactor     .10000E-03    25.847        .18142E-02** at limit **
  27  Prefactor     .10002E-03    67.269        .26350E-02** at limit **
  28  norm          .10000E-03    10.439        .13671E-02** at limit **
  29  Normalizat    .73840        .35649        .25863E-03   -.25631E-03
  30  Prefactor     1.1428        .37673        .22480E-03   -.14406E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.34056
  Prefactor  = 0.000100193
  Prefactor  = 0.000100001
  Prefactor  = 33.8406
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100022
  Prefactor  = 0.0500027
  Prefactor  = 42.276
  Prefactor  = 0.0001
  norm       = 0.000100008
  Prefactor  = 41.167
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.000100015
  Prefactor  = 0.0001
  Prefactor  = 0.00010021
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.00378
  Prefactor  = 0.0001
  Prefactor  = 0.000100019
  norm       = 0.0001
  Normalizat = 0.738398
  Prefactor  = 1.14275
 **********
 **   18 **HESSE 
 **********

 FCN=   1877.092     FROM HESSE     STATUS=OK           556 CALLS     5650 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3406        477.04        .15012E-04   -1.5476    
   2  Prefactor     .10019E-03    54.215        .65862E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    36.295        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     33.841        41.614        .13777E-04   -1.4544    
   5  norm          .10000E-03    45.913        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.7840        .20355E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10002E-03    681.93        .41039E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .50003E-01    154.41        .70519E-04   -1.5663    
   9  Prefactor     42.276        268.53        .12324E-04   -1.4407    
  10  Prefactor     .10000E-03    8.0477        .23889E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10001E-03    12.688        .23893E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     41.167        95.879        .12518E-04   -1.4424    
  13  norm          .10000E-03    .81764        .75960E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.2551        .21133E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    11.708        .28926E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.4806        .17834E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.5580        .39320E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    71.662        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    101.76        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10002E-03    219.42        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    41.914        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10021E-03    819.88        .30400E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    6.4142        .21419E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    26.200        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     6.0038        8.2389        .53947E-05   -1.5218    
  26  Prefactor     .10000E-03    25.847        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10002E-03    67.458        .52699E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    10.439        .27342E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .73840        .35671        .51726E-04   -1.0240    
  30  Prefactor     1.1428        .37594        .44960E-04   -.88112    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04907e-08
Minuit parameter uncertainties:
  1  50.9893
  2  0.00647417
  3  0.000351581
  4  41.6498
  5  0.0003543
  6  4.80632e-07
  7  0.00777004
  8  5.56623
  9  214.526
  10  2.73371e-05
  11  0.000618674
  12  96.2411
  13  1.27968e-06
  14  5.17627e-06
  15  0.000119806
  16  3.13671e-05
  17  0.000181677
  18  0.000546389
  19  0.000113543
  20  0.0036522
  21  0.000168303
  22  0.026624
  23  2.64406e-06
  24  3.17979e-05
  25  8.24042
  26  6.77508e-05
  27  0.00226111
  28  2.48286e-05
  29  0.35784
  30  0.376824
Done.

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

Extracting fit parameters...

4FGL J0923.5+3852
   Spectrum: LogParabola
305         norm:  1.000e-04  1.198e-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.143e+00  3.768e-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.384e-01  3.578e-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: 1.71e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.56e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/201186/likelihoodResults_550368001_550627201_4FGL_J0923.5+3852_daily_bin1200.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): 102
logL (Free Index) = 1877.09252806
delta logL = -0.000405501634532

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1877.09212268
delta logL = -1.19588776215e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5938       1.0000          .0000       5.0000    
     3 'Normalizat'    .73859       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1426       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=   1877.092     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      231 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    475.06        .14591E-01** at limit **
   2  alpha         2.1379        2.5541        .16475        .25618E-07
   3  Normalizat    .73841        .44012E-01    .25864E-03    .68242E-05
   4  Prefactor     1.1427        .46881E-01    .22480E-03    .89261E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 2.13791
  Normalizat = 0.738405
  Prefactor  = 1.14275
 **********
 **   18 **HESSE 
 **********

 FCN=   1877.092     FROM HESSE     STATUS=OK            23 CALLS      254 TOTAL
                     EDM=   .59E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    13.708        .15580E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1379        3.4408        .65901E-02   -.14535    
   3  Normalizat    .73841        .34469        .10345E-04   -1.0240    
   4  Prefactor     1.1427        .36742        .89920E-05   -.88112    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.8878e-11
Minuit parameter uncertainties:
  1  0.000177969
  2  433.21
  3  0.345709
  4  0.368243
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/201186': 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) = 1877.09212195
delta logL = 6.07238916928e-07

Extracting fit parameters...

4FGL J0923.5+3852
   Spectrum: LogParabola
305         norm:  1.000e-04  1.780e-04  1.000e-04  1.000e+04 ( 1.000e-12)
306        alpha:  2.138e+00  4.332e+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.143e+00  3.682e-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.384e-01  3.457e-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/201186/cmap_HighResolution_550368001_550627201_4FGL_J0923.5+3852_daily_bin1200.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.56e-05', job_status='DONE', photon_flux_upper_limit='1.71e-07', time_completed='2021-08-31 10:34:14.475124', job_id='201186', GAL2='1.14', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1630431254.48', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='6.07e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='1200' AND source_name='4FGL J0923.5+3852' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 10:34:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 201186: <4FGL_J0923.5+3852_daily_bin1200> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0923.5+3852_daily_bin1200 140.885 38.8743 550368001 550627201 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 :                                   381.16 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             273.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   517 sec.
    Turnaround time :                            519 sec.

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

