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


Performing analysis on: 4FGL_J0923.5+3852_daily_bin1580
RA = 140.885, Dec = 38.8743
tmin = 648864001, tmax = 649123201
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='204008', job_status='RUN', time_executed='2021-08-31 10:39:01.552492', time_epoch_executed='1630431541.55' WHERE source_name='4FGL J0923.5+3852' and cadence='daily' and bin_id='1580'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/204008

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/204008/ft1_4FGL_J0923.5+3852_daily_bin1580.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/204008/ft2_4FGL_J0923.5+3852_daily_bin1580.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/204008/ft1_4FGL_J0923.5+3852_daily_bin1580.fits outfile=/scratch/kocevski/204008/ft1_filteredMKT_4FGL_J0923.5+3852_daily_bin1580.fits ra=140.885 dec=38.8743 rad=12.0 tmin=648864001.0 tmax=649123201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.47
user 2.81
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/204008/ft2_4FGL_J0923.5+3852_daily_bin1580.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/204008/ft1_filteredMKT_4FGL_J0923.5+3852_daily_bin1580.fits evtable="EVENTS" outfile="/scratch/kocevski/204008/ft1_filtered_4FGL_J0923.5+3852_daily_bin1580.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 2.17
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/204008/ft1_filtered_4FGL_J0923.5+3852_daily_bin1580.fits" evtable="EVENTS" scfile=/scratch/kocevski/204008/ft2_4FGL_J0923.5+3852_daily_bin1580.fits sctable="SC_DATA" outfile=/scratch/kocevski/204008/ltcube_648864001_649123201_4FGL_J0923.5+3852_daily_bin1580.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/204008/ft2_4FGL_J0923.5+3852_daily_bin1580.fits
.....................!
real 14.61
user 12.14
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/204008/ft1_filtered_4FGL_J0923.5+3852_daily_bin1580.fits evtable="EVENTS" scfile=/scratch/kocevski/204008/ft2_4FGL_J0923.5+3852_daily_bin1580.fits sctable="SC_DATA" expcube=/scratch/kocevski/204008/ltcube_648864001_649123201_4FGL_J0923.5+3852_daily_bin1580.fits outfile=/scratch/kocevski/204008/expmap_648864001_649123201_4FGL_J0923.5+3852_daily_bin1580.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/204008/ltcube_648864001_649123201_4FGL_J0923.5+3852_daily_bin1580.fits
.....................!
real 199.37
user 185.68
sys 5.01

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/204008/ft1_filtered_4FGL_J0923.5+3852_daily_bin1580.fits scfile=/scratch/kocevski/204008/ft2_4FGL_J0923.5+3852_daily_bin1580.fits outfile=/scratch/kocevski/204008/cmap_648864001_649123201_4FGL_J0923.5+3852_daily_bin1580.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.80
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/204008/ft1_filtered_4FGL_J0923.5+3852_daily_bin1580.fits scfile=/scratch/kocevski/204008/ft2_4FGL_J0923.5+3852_daily_bin1580.fits outfile=/scratch/kocevski/204008/cmap_HighResolution_648864001_649123201_4FGL_J0923.5+3852_daily_bin1580.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 1.90
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .76264       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.3539       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .24039E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    18.387       1.0000         .10000E-03   10000.    
    24 'norm      '    13.106       1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.1181       1.0000         .10000E-03   10000.    
    26 'Prefactor '    79.424       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10758E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.6879       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6380E+05   .2000E-04
 **********
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1286.019     FROM MIGRAD    STATUS=CONVERGED    797 CALLS     4067 TOTAL
                     EDM=   .87E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10000.        6268.6        .14362E-02** at limit **
   2  Prefactor    10000.0        308.25       -.19985E-03** at limit **
   3  Prefactor     10000.        1469.3        .10919E-02** at limit **
   4  Prefactor     10000.        825.25        .59396E-03** at limit **
   5  norm          .10000E-03    176.15        .14227E-03** at limit **
   6  Prefactor     .10000E-03    5.2612       -.50703E-06** at limit **
   7  Prefactor     .10000E-03    127.80       -.32935E-04** at limit **
   8  Prefactor     .10000E-03    9.0626       -.24484E-06** at limit **
   9  Prefactor     .10000E-03    83.224       -.35743E-04** at limit **
  10  Prefactor     .10000E-03    4.4051        .93545E-07** at limit **
  11  norm          .10000E-03    3.3446        .55692E-08** at limit **
  12  Prefactor     .10000E-03    36.481       -.74613E-05** at limit **
  13  norm          .76278        1.0042       -.14591E-06   -.38605E-04
  14  Prefactor     .10000E-03    2.9205       -.17022E-07** at limit **
  15  norm          .10000E-03    7.1447        .51478E-06** at limit **
  16  Prefactor     .10000E-03    6.2530        .17492E-05** at limit **
  17  Prefactor     .10000E-03    4.6702        .14137E-06** at limit **
  18  Prefactor     6.3236        18.445        .81123E-05    .34192E-03
  19  Prefactor     .10000E-03    102.30       -.89417E-04** at limit **
  20  norm          .10000E-03    26.907        .39200E-05** at limit **
  21  Prefactor     .10000E-03    22.617       -.14466E-05** at limit **
  22  Prefactor     .10000E-03    71.522        .63144E-04** at limit **
  23  Prefactor     18.388        15.788       -.32081E-06    .28350E-03
  24  norm          13.106        14.881       -.22853E-06    .35463E-04
  25  Prefactor     1.1221        7.8743       -.14678E-04   -.19249E-03
  26  Prefactor     79.406        50.147       -.15342E-05    .11885E-04
  27  Prefactor     .10000E-03    6.4816       -.11016E-05** at limit **
  28  norm          .10000E-03    10.768        .17678E-06** at limit **
  29  Normalizat    .10000E-01    .81177E-01    .13050E-05** at limit **
  30  Prefactor     1.6873        .28138        .65338E-05    .19082E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.762778
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.32362
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.3885
  norm       = 13.1063
  Prefactor  = 1.12205
  Prefactor  = 79.4064
  Prefactor  = 0.000100004
  norm       = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.68733
 **********
 **   18 **HESSE 
 **********

 FCN=   1286.019     FROM HESSE     STATUS=OK           568 CALLS     4635 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10000.        6268.2        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor    10000.0        308.36        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10000.        1468.8        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10000.        825.12        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    176.14        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.2613        .80350E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    127.80        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.0815        .10546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    83.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.4067        .73521E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.3484        .64061E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    36.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .76278        .97508        .39985E-03   -1.5533    
  14  Prefactor     .10000E-03    2.9255        .59840E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    7.1472        .93637E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.4439        .17511E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.6734        .75701E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.3236        18.427        .15923E-03   -1.5205    
  19  Prefactor     .10000E-03    104.74        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    26.946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    22.630        .16664E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    71.650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     18.388        15.735        .93404E-04   -1.4850    
  24  norm          13.106        14.887        .11065E-03   -1.4984    
  25  Prefactor     1.1221        7.7186        .18052E-03   -1.5496    
  26  Prefactor     79.406        50.170        .45064E-04   -1.3923    
  27  Prefactor     .10000E-03    6.5598        .88746E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    10.811        .11488E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .10000E-01    .83088E-01    .61255E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     1.6873        .27612        .22710E-03   -.72420    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.70483e-09
Minuit parameter uncertainties:
  1  7.63847e-05
  2  0.000177936
  3  4.29858e-05
  4  2.93524e-05
  5  1.20152e-05
  6  7.63816e-07
  7  4.15324e-06
  8  1.38829e-05
  9  4.1984e-06
  10  1.97561e-06
  11  4.31369e-06
  12  6.7682e-06
  13  0.975097
  14  3.49792e-06
  15  5.73786e-06
  16  4.60023e-05
  17  3.59107e-06
  18  18.4434
  19  0.000647756
  20  8.24739e-05
  21  3.69377e-05
  22  0.00022319
  23  15.7383
  24  14.891
  25  5.88665
  26  50.1972
  27  0.000324753
  28  1.46185e-05
  29  1.21687e-06
  30  0.276375
Done.

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

Extracting fit parameters...

4FGL J0923.5+3852
   Spectrum: LogParabola
305         norm:  1.000e-04  5.738e-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.687e+00  2.764e-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.000e-02  1.217e-06  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.60e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.24e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/204008/likelihoodResults_648864001_649123201_4FGL_J0923.5+3852_daily_bin1580.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) = 1286.01966855
delta logL = -0.000654033603951

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1286.01901542
delta logL = -9.08320316739e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10147E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5909       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.6874       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=   1286.019     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      249 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    687.98        .94921E-02** at limit **
   2  alpha         1.6264        4.1494        .16474       -.94714E-08
   3  Normalizat    .10000E-01    .12175E-01    .61255E-02** at limit **
   4  Prefactor     1.6873        .92841E-01    .22710E-03   -.34892E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.62643
  Normalizat = 0.01
  Prefactor  = 1.68732
 **********
 **   18 **HESSE 
 **********

 FCN=   1286.019     FROM HESSE     STATUS=OK            23 CALLS      272 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    11.039        .11632E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6264        2.5018        .65898E-02   -.35696    
   3  Normalizat    .10000E-01    .83091E-01    .12251E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.6873        .24264        .90839E-05   -.72420    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.10956e-11
Minuit parameter uncertainties:
  1  1.0219e-05
  2  426.82
  3  9.55606e-07
  4  0.242807
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/204008': 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) = 1286.01901205
delta logL = 2.46210788646e-06

Extracting fit parameters...

4FGL J0923.5+3852
   Spectrum: LogParabola
305         norm:  1.000e-04  1.022e-05  1.000e-04  1.000e+04 ( 1.000e-12)
306        alpha:  1.626e+00  4.268e+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.687e+00  2.428e-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.000e-02  9.556e-07  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/204008/cmap_HighResolution_648864001_649123201_4FGL_J0923.5+3852_daily_bin1580.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.24e-05', job_status='DONE', photon_flux_upper_limit='1.60e-07', time_completed='2021-08-31 10:47:13.528811', job_id='204008', GAL2='1.69', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630432033.53', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.69', dlogl='2.46e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='1580' AND source_name='4FGL J0923.5+3852' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 10:47:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0119>
Subject: Job 204008: <4FGL_J0923.5+3852_daily_bin1580> in cluster <slac> Done

Job <4FGL_J0923.5+3852_daily_bin1580> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Aug 31 10:35:26 2021
Job was executed on host(s) <bullet0119>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 10:35:28 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:35:28 2021
Terminated at Tue Aug 31 10:47:14 2021
Results reported at Tue Aug 31 10:47:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0923.5+3852_daily_bin1580 140.885 38.8743 648864001 649123201 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 :                                   453.04 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             231.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   705 sec.
    Turnaround time :                            708 sec.

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

