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


Performing analysis on: 4FGL_J0923.5+3852_daily_bin1184
RA = 140.885, Dec = 38.8743
tmin = 546220801, tmax = 546480001
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='201162', job_status='RUN', time_executed='2021-08-31 10:26:05.404836', time_epoch_executed='1630430765.4' WHERE source_name='4FGL J0923.5+3852' and cadence='daily' and bin_id='1184'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/201162

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/201162/ft1_4FGL_J0923.5+3852_daily_bin1184.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/201162/ft2_4FGL_J0923.5+3852_daily_bin1184.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/201162/ft1_4FGL_J0923.5+3852_daily_bin1184.fits outfile=/scratch/kocevski/201162/ft1_filteredMKT_4FGL_J0923.5+3852_daily_bin1184.fits ra=140.885 dec=38.8743 rad=12.0 tmin=546220801.0 tmax=546480001.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.11
user 3.70
sys 1.34

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/201162/ft1_filtered_4FGL_J0923.5+3852_daily_bin1184.fits" evtable="EVENTS" scfile=/scratch/kocevski/201162/ft2_4FGL_J0923.5+3852_daily_bin1184.fits sctable="SC_DATA" outfile=/scratch/kocevski/201162/ltcube_546220801_546480001_4FGL_J0923.5+3852_daily_bin1184.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/201162/ft2_4FGL_J0923.5+3852_daily_bin1184.fits
.....................!
real 13.70
user 12.04
sys 1.59

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/201162/ft1_filtered_4FGL_J0923.5+3852_daily_bin1184.fits evtable="EVENTS" scfile=/scratch/kocevski/201162/ft2_4FGL_J0923.5+3852_daily_bin1184.fits sctable="SC_DATA" expcube=/scratch/kocevski/201162/ltcube_546220801_546480001_4FGL_J0923.5+3852_daily_bin1184.fits outfile=/scratch/kocevski/201162/expmap_546220801_546480001_4FGL_J0923.5+3852_daily_bin1184.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/201162/ltcube_546220801_546480001_4FGL_J0923.5+3852_daily_bin1184.fits
.....................!
real 192.29
user 185.63
sys 5.86

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/201162/ft1_filtered_4FGL_J0923.5+3852_daily_bin1184.fits scfile=/scratch/kocevski/201162/ft2_4FGL_J0923.5+3852_daily_bin1184.fits outfile=/scratch/kocevski/201162/cmap_546220801_546480001_4FGL_J0923.5+3852_daily_bin1184.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.66
user 0.37
sys 1.26

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/201162/ft1_filtered_4FGL_J0923.5+3852_daily_bin1184.fits scfile=/scratch/kocevski/201162/ft2_4FGL_J0923.5+3852_daily_bin1184.fits outfile=/scratch/kocevski/201162/cmap_HighResolution_546220801_546480001_4FGL_J0923.5+3852_daily_bin1184.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.68
user 0.38
sys 1.27

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.950       1.0000         .10000E-03   10000.    
     3 'Prefactor '    92.440       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10058E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1790.3       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10287E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.7524       1.0000         .10000E-03   10000.    
    12 'Prefactor '    29.681       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10497E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.4921       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.9381       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .26927E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .33628E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    49.128       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    39.604       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    4.8865       1.0000         .10000E-03   10000.    
    27 'Prefactor '    22.398       1.0000         .10000E-03   10000.    
    28 'norm      '    28.202       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .40823       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.4598       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=   2359.634     FROM MIGRAD    STATUS=CONVERGED    730 CALLS     4428 TOTAL
                     EDM=   .99E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    37.766       -.14977E-05** at limit **
   2  Prefactor     13.947        10.789        .59942E-08    .15789E-04
   3  Prefactor     92.389        99.252       -.31660E-05   -.30524E-05
   4  Prefactor     .10000E-03    27.884       -.38715E-08** at limit **
   5  norm          .10000E-03    33.860       -.75436E-06** at limit **
   6  Prefactor     .10000E-03    5.6554        .83978E-07** at limit **
   7  Prefactor     1791.1        1518.1        .80949E-05    .25784E-05
   8  Prefactor     .10000E-03    1.6064       -.27161E-07** at limit **
   9  Prefactor     .10000E-03    48.013        .82236E-06** at limit **
  10  Prefactor     .10000E-03    8.4259        .34283E-06** at limit **
  11  norm          1.7526        1.6754       -.44360E-07    .59055E-05
  12  Prefactor     29.698        58.112        .62718E-06   -.33914E-06
  13  norm          .10000E-03    .79194       -.11575E-06** at limit **
  14  Prefactor     .10000E-03    6.4350       -.26548E-06** at limit **
  15  norm          .10000E-03    14.584        .71543E-06** at limit **
  16  Prefactor     6.4982        8.2287        .17061E-06    .71205E-06
  17  Prefactor     7.9395        6.9708       -.18816E-06    .84253E-05
  18  Prefactor     .10000E-03    231.19       -.24469E-05** at limit **
  19  Prefactor     .10000E-03    186.57       -.37157E-05** at limit **
  20  norm          49.118        49.868       -.11098E-06   -.11214E-05
  21  Prefactor     .10000E-03    66.427        .52470E-06** at limit **
  22  Prefactor     .10000E-03    57.057        .21121E-05** at limit **
  23  Prefactor     .10000E-03    4.2706        .31875E-07** at limit **
  24  norm          39.472        122.20       -.74266E-05   -.34764E-05
  25  Prefactor     .10000E-03    5.1463        .10477E-06** at limit **
  26  Prefactor     5.1205        992.13       -.31820E-04   -.38155E-05
  27  Prefactor     22.398        13.790        .37645E-06    .37667E-05
  28  norm          28.125        47.885        .28056E-05   -.25756E-05
  29  Normalizat    .40829        .33714        .51343E-06    .11262E-04
  30  Prefactor     1.4596        .33179        .10047E-05   -.48154E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 13.9471
  Prefactor  = 92.3893
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1791.05
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.75255
  Prefactor  = 29.6975
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.49825
  Prefactor  = 7.93946
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 49.1182
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 39.4725
  Prefactor  = 0.0001
  Prefactor  = 5.12054
  Prefactor  = 22.3985
  norm       = 28.1252
  Normalizat = 0.408293
  Prefactor  = 1.45956
 **********
 **   18 **HESSE 
 **********

 FCN=   2359.634     FROM HESSE     STATUS=OK           582 CALLS     5010 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    37.730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     13.947        10.785        .10724E-03   -1.4961    
   3  Prefactor     92.389        99.108        .20899E-03   -1.3783    
   4  Prefactor     .10000E-03    27.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    33.869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.6577        .11282E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1791.1        1519.2        .52167E-04   -.69683    
   8  Prefactor     .10000E-03    1.6090        .60123E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    47.989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.4957        .13731E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.7526        1.6848        .58455E-04   -1.5443    
  12  Prefactor     29.698        57.865        .73541E-04   -1.4618    
  13  norm          .10000E-03    .79850        .42131E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.4502        .12028E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    14.572        .18075E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.4982        8.1842        .13908E-03   -1.5198    
  17  Prefactor     7.9395        6.9257        .10371E-03   -1.5144    
  18  Prefactor     .10000E-03    231.45        .21435E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    186.46        .21341E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          49.118        49.858        .57212E-04   -1.4305    
  21  Prefactor     .10000E-03    66.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    57.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    4.2740        .98044E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          39.472        122.12        .31846E-03   -1.4451    
  25  Prefactor     .10000E-03    5.1682        .10736E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     5.1205        1004.0        .18196E-02   -1.5255    
  27  Prefactor     22.398        13.746        .84636E-04   -1.4761    
  28  norm          28.125        48.308        .75440E-04   -1.4647    
  29  Normalizat    .40829        .36757        .38819E-03   -1.1687    
  30  Prefactor     1.4596        .36978        .22958E-03   -.78679    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.95109e-11
Minuit parameter uncertainties:
  1  2.30758e-05
  2  10.7869
  3  99.286
  4  3.759e-05
  5  1.6515e-05
  6  1.10876e-06
  7  1562.02
  8  1.23555e-06
  9  1.30337e-05
  10  1.75896e-05
  11  1.68484
  12  57.9748
  13  1.25451e-07
  14  4.08402e-06
  15  2.56856e-05
  16  8.18564
  17  6.92641
  18  0.000292916
  19  6.64798e-05
  20  49.9006
  21  6.27223e-05
  22  5.3349e-05
  23  1.45195e-06
  24  122.907
  25  1.00897e-05
  26  145.956
  27  13.7478
  28  48.3755
  29  0.369776
  30  0.37046
Done.

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

Extracting fit parameters...

4FGL J0923.5+3852
   Spectrum: LogParabola
305         norm:  1.000e-04  2.569e-05  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.460e+00  3.705e-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:  4.083e-01  3.698e-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.76e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.68e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/201162/likelihoodResults_546220801_546480001_4FGL_J0923.5+3852_daily_bin1184.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) = 2359.63433943
delta logL = -0.000325853946379

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2359.63401481
delta logL = -1.23553081721e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11025E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5763       1.0000          .0000       5.0000    
     3 'Normalizat'    .40782       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4601       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=   2359.593     FROM MIGRAD    STATUS=CONVERGED    217 CALLS      367 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.8348        14.358        .18142E-01    .16652E-03
   2  alpha         1.2034        1.2990        .16470       -.13782E-04
   3  Normalizat    .41575        .33674        .38821E-03    .36606E-05
   4  Prefactor     1.4452        .36394        .22958E-03   -.15698E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.83482
  alpha      = 1.20338
  Normalizat = 0.415748
  Prefactor  = 1.44522
 **********
 **   18 **HESSE 
 **********

 FCN=   2359.593     FROM HESSE     STATUS=OK            27 CALLS      394 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.8348        14.946        .33989E-03   -1.5316    
   2  alpha         1.2034        1.3657        .30657E-02   -.54527    
   3  Normalizat    .41575        .33680        .15528E-04   -1.1650    
   4  Prefactor     1.4452        .36364        .91832E-05   -.79086    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.19528e-11
Minuit parameter uncertainties:
  1  14.9605
  2  1.48147
  3  0.338455
  4  0.364289
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/201162': 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) = 2359.5931303
delta logL = 0.0408832786475

Extracting fit parameters...

4FGL J0923.5+3852
   Spectrum: LogParabola
305         norm:  3.835e+00  1.496e+01  1.000e-04  1.000e+04 ( 1.000e-12)
306        alpha:  1.203e+00  1.481e+00  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.445e+00  3.643e-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:  4.157e-01  3.385e-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/201162/cmap_HighResolution_546220801_546480001_4FGL_J0923.5+3852_daily_bin1184.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.68e-05', job_status='DONE', photon_flux_upper_limit='1.76e-07', time_completed='2021-08-31 10:35:45.044891', job_id='201162', GAL2='1.45', fit_tolerance='1e-08', EG2='0.42', EG='0.41', time_epoch_completed='1630431345.04', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.46', dlogl='4.09e-02', ts2='0.08', photon_index_error='0.00', photon_index='2.61' WHERE bin_id='1184' AND source_name='4FGL J0923.5+3852' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 10:35:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 201162: <4FGL_J0923.5+3852_daily_bin1184> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0923.5+3852_daily_bin1184 140.885 38.8743 546220801 546480001 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 :                                   591.47 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             325.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   610 sec.
    Turnaround time :                            612 sec.

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

