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


Performing analysis on: 4FGL_J0923.5+3852_daily_bin1334
RA = 140.885, Dec = 38.8743
tmin = 585100801, tmax = 585360001
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='202491', job_status='RUN', time_executed='2021-08-31 10:33:06.704147', time_epoch_executed='1630431186.7' WHERE source_name='4FGL J0923.5+3852' and cadence='daily' and bin_id='1334'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/202491

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/202491/ft1_4FGL_J0923.5+3852_daily_bin1334.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/202491/ft2_4FGL_J0923.5+3852_daily_bin1334.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/202491/ft1_4FGL_J0923.5+3852_daily_bin1334.fits outfile=/scratch/kocevski/202491/ft1_filteredMKT_4FGL_J0923.5+3852_daily_bin1334.fits ra=140.885 dec=38.8743 rad=12.0 tmin=585100801.0 tmax=585360001.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.04
user 2.84
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/202491/ft1_filtered_4FGL_J0923.5+3852_daily_bin1334.fits" evtable="EVENTS" scfile=/scratch/kocevski/202491/ft2_4FGL_J0923.5+3852_daily_bin1334.fits sctable="SC_DATA" outfile=/scratch/kocevski/202491/ltcube_585100801_585360001_4FGL_J0923.5+3852_daily_bin1334.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/202491/ft2_4FGL_J0923.5+3852_daily_bin1334.fits
.....................!
real 12.32
user 11.93
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/202491/ft1_filtered_4FGL_J0923.5+3852_daily_bin1334.fits evtable="EVENTS" scfile=/scratch/kocevski/202491/ft2_4FGL_J0923.5+3852_daily_bin1334.fits sctable="SC_DATA" expcube=/scratch/kocevski/202491/ltcube_585100801_585360001_4FGL_J0923.5+3852_daily_bin1334.fits outfile=/scratch/kocevski/202491/expmap_585100801_585360001_4FGL_J0923.5+3852_daily_bin1334.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/202491/ltcube_585100801_585360001_4FGL_J0923.5+3852_daily_bin1334.fits
.....................!
real 191.47
user 186.75
sys 4.03

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/202491/ft1_filtered_4FGL_J0923.5+3852_daily_bin1334.fits scfile=/scratch/kocevski/202491/ft2_4FGL_J0923.5+3852_daily_bin1334.fits outfile=/scratch/kocevski/202491/cmap_585100801_585360001_4FGL_J0923.5+3852_daily_bin1334.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.53
user 0.39
sys 0.11

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/202491/ft1_filtered_4FGL_J0923.5+3852_daily_bin1334.fits scfile=/scratch/kocevski/202491/ft2_4FGL_J0923.5+3852_daily_bin1334.fits outfile=/scratch/kocevski/202491/cmap_HighResolution_585100801_585360001_4FGL_J0923.5+3852_daily_bin1334.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.60
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    178.25       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.6615       1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.035       1.0000         .10000E-03   10000.    
     5 'norm      '    6.3510       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.8835       1.0000         .10000E-03   10000.    
     7 'Prefactor '    65.761       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .34807E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.5290       1.0000         .10000E-03   10000.    
    13 'norm      '    1.1035       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.1180       1.0000         .10000E-03   10000.    
    15 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.9337       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.4615       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .18005E-02   1.0000         .10000E-03   10000.    
    20 'norm      '    .10532E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10250E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    27.557       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10263E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    11.995       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    11.030       1.0000         .10000E-03   10000.    
    28 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .91193       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1459       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=   3125.048     FROM MIGRAD    STATUS=CONVERGED    746 CALLS     4446 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     178.26        177.80        .13510E-04   -.31692E-04
   2  Prefactor     .10000E-03    10.128        .41679E-06** at limit **
   3  Prefactor     1.7412        6187.1       -.12246E-03   -.11143E-04
   4  Prefactor     18.053        34.110        .75399E-05   -.54149E-04
   5  norm          6.3476        14.332        .18673E-06   -.36987E-04
   6  Prefactor     4.8826        4.3251        .45221E-07   -.60399E-04
   7  Prefactor     65.903        93.461        .10286E-05    .79466E-04
   8  Prefactor     .10000E-03    2.1454       -.54143E-07** at limit **
   9  Prefactor     .10000E-03    33.962        .96577E-07** at limit **
  10  Prefactor     .10000E-03    4.9151       -.41055E-07** at limit **
  11  norm          .10000E-03    3.3794       -.18044E-06** at limit **
  12  Prefactor     7.5261        25.780        .17763E-06   -.85570E-05
  13  norm          1.1034        1.2233        .15705E-07   -.26572E-03
  14  Prefactor     5.1183        7.2564        .51503E-07   -.11033E-03
  15  norm          .10000E-03    8.1380       -.72148E-07** at limit **
  16  Prefactor     8.9352        5.5523       -.28891E-07    .27242E-04
  17  Prefactor     3.4619        8.8460        .25127E-06   -.56115E-04
  18  Prefactor     .10000E-03    5.0593        .10137E-06** at limit **
  19  Prefactor     .10029E-03    14.815        .11745E-05** at limit **
  20  norm          .10000E-03    28.120        .69054E-06** at limit **
  21  Prefactor     .10000E-03    22.402        .33626E-06** at limit **
  22  Prefactor     27.584        46.173       -.18516E-06    .39765E-04
  23  Prefactor     .10000E-03    11.791       -.55244E-06** at limit **
  24  norm          .10000E-03    17.489       -.37048E-06** at limit **
  25  Prefactor     11.996        6.8240       -.18150E-07    .15215E-04
  26  Prefactor     .10000E-03    14.707       -.79082E-07** at limit **
  27  Prefactor     11.029        7.3170        .82913E-08   -.26474E-05
  28  norm          .10000E-03    4.2428       -.82018E-07** at limit **
  29  Normalizat    .91190        .26183       -.11640E-05    .35922E-05
  30  Prefactor     1.1459        .29879        .16851E-05   -.10874E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 178.26
  Prefactor  = 0.0001
  Prefactor  = 1.7412
  Prefactor  = 18.0525
  norm       = 6.34764
  Prefactor  = 4.88257
  Prefactor  = 65.9033
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 7.52613
  norm       = 1.10345
  Prefactor  = 5.11826
  norm       = 0.0001
  Prefactor  = 8.93524
  Prefactor  = 3.46187
  Prefactor  = 0.0001
  Prefactor  = 0.000100293
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.5843
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.9956
  Prefactor  = 0.0001
  Prefactor  = 11.029
  norm       = 0.0001
  Normalizat = 0.911904
  Prefactor  = 1.14593
 **********
 **   18 **HESSE 
 **********

 FCN=   3125.048     FROM HESSE     STATUS=OK           586 CALLS     5032 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     178.26        178.32        .15116E-03   -1.3030    
   2  Prefactor     .10000E-03    10.113        .17359E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.7412        6207.6        .32727E-03   -1.5444    
   4  Prefactor     18.053        34.249        .94311E-04   -1.4858    
   5  norm          6.3476        14.321        .15927E-03   -1.5204    
   6  Prefactor     4.8826        4.3163        .10451E-03   -1.5266    
   7  Prefactor     65.903        93.162        .24745E-03   -1.4083    
   8  Prefactor     .10000E-03    2.1470        .79965E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    33.962        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    43.645        .22190E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.4750        .20013E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.5261        25.560        .14616E-03   -1.5159    
  13  norm          1.1034        1.3033        .43282E-04   -1.5498    
  14  Prefactor     5.1183        7.8365        .11610E-03   -1.5255    
  15  norm          .10000E-03    8.1875        .15556E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.9352        5.3591        .91612E-04   -1.5110    
  17  Prefactor     3.4619        8.8028        .21736E-03   -1.5336    
  18  Prefactor     .10000E-03    5.0647        .12278E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10029E-03    102.63        .41347E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    28.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    22.427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     27.584        46.324        .76315E-04   -1.4657    
  23  Prefactor     .10000E-03    11.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    17.760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     11.996        6.8325        .96630E-04   -1.5015    
  26  Prefactor     .10000E-03    14.726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     11.029        7.3245        .10944E-03   -1.5044    
  28  norm          .10000E-03    4.2503        .11245E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .91190        .30499        .26329E-03   -.96043    
  30  Prefactor     1.1459        .34982        .28755E-03   -.88012    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.21123e-09
Minuit parameter uncertainties:
  1  178.861
  2  6.17003e-05
  3  139.103
  4  34.2858
  5  14.3291
  6  4.31654
  7  93.3693
  8  1.91066e-06
  9  7.34302e-05
  10  0.000784916
  11  6.2096e-06
  12  25.5969
  13  1.30334
  14  7.83809
  15  1.31459e-06
  16  5.3594
  17  8.80609
  18  1.32826e-05
  19  0.0109938
  20  0.000208337
  21  0.000109391
  22  46.3848
  23  3.22848e-05
  24  8.49661e-05
  25  6.83291
  26  3.21568e-05
  27  7.3251
  28  6.4833e-06
  29  0.305574
  30  0.350529
Done.

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

Extracting fit parameters...

4FGL J0923.5+3852
   Spectrum: LogParabola
305         norm:  1.000e-04  1.315e-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:  1.146e+00  3.505e-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:  9.119e-01  3.056e-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.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.78e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/202491/likelihoodResults_585100801_585360001_4FGL_J0923.5+3852_daily_bin1334.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) = 3125.04850499
delta logL = -0.000580853977226

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3125.04792415
delta logL = -7.77754394221e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6103       1.0000          .0000       5.0000    
     3 'Normalizat'    .91191       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1459       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=   3125.048     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      233 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10005E-03    15.581        .15557E-02** at limit **
   2  alpha         2.6509        2.6796        .16481       -.41968E-06
   3  Normalizat    .91190        .28020        .26329E-03    .24590E-04
   4  Prefactor     1.1459        .34021        .28755E-03    .17554E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100055
  alpha      = 2.65086
  Normalizat = 0.911901
  Prefactor  = 1.14593
 **********
 **   18 **HESSE 
 **********

 FCN=   3125.048     FROM HESSE     STATUS=OK            23 CALLS      256 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10005E-03    8.2100        .31113E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.6509        3.6061        .65924E-02    .60379E-01
   3  Normalizat    .91190        .28049        .10532E-04   -.96043    
   4  Prefactor     1.1459        .34057        .11502E-04   -.88012    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40745e-08
Minuit parameter uncertainties:
  1  0.00134291
  2  497.14
  3  0.280942
  4  0.34122
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/202491': 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) = 3125.04792413
delta logL = 7.32507032808e-09

Extracting fit parameters...

4FGL J0923.5+3852
   Spectrum: LogParabola
305         norm:  1.001e-04  1.343e-03  1.000e-04  1.000e+04 ( 1.000e-12)
306        alpha:  2.651e+00  4.971e+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.146e+00  3.412e-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:  9.119e-01  2.809e-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/202491/cmap_HighResolution_585100801_585360001_4FGL_J0923.5+3852_daily_bin1334.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.78e-05', job_status='DONE', photon_flux_upper_limit='1.04e-07', time_completed='2021-08-31 10:44:20.605666', job_id='202491', GAL2='1.15', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1630431860.61', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='7.33e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='1334' AND source_name='4FGL J0923.5+3852' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 10:44:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0171>
Subject: Job 202491: <4FGL_J0923.5+3852_daily_bin1334> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0923.5+3852_daily_bin1334 140.885 38.8743 585100801 585360001 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 :                                   642.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             243.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   818 sec.
    Turnaround time :                            820 sec.

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

